-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用swift 写的Target_NoTargetAction 就调用不了哟 #54
Comments
无法复现? |
@wangkeshuai 怎么解决的啊 |
因为在swift里使用NSClassFromString需要加上项目名:NSClassFromString("(workName).(className)") ` @implementation Target_NoTargetAction -(void)Action_response:(NSDictionary *)params{ @EnD |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
(void)NoTargetActionResponseWithTargetString:(NSString *)targetString selectorString:(NSString *)selectorString originParams:(NSDictionary *)originParams
{
SEL action = NSSelectorFromString(@"Action_response:");
NSObject *target = [[NSClassFromString(@"Target_NoTargetAction") alloc] init];
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
params[@"originParams"] = originParams;
params[@"targetString"] = targetString;
params[@"selectorString"] = selectorString;
[self safePerformAction:action target:target params:params];
}
用swift 写的Target_NoTargetAction 就调用不了哟
The text was updated successfully, but these errors were encountered: