IsLuoYe
Results
1
comments of
IsLuoYe
因为在swift里使用NSClassFromString需要加上项目名:NSClassFromString("\(workName).\(className)") 我的解决方办法是:swift和OC进行混编,Target_NoTargetAction用OC写,然后在OC的代码里再进行一次跳转。 ` #import "Target_NoTargetAction.h" #import @implementation Target_NoTargetAction -(void)Action_response:(NSDictionary *)params{ NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithDictionary:params]; dic[kCTMediatorParamsKeySwiftTargetModuleName] = @"workName"; [[CTMediator sharedInstance] performTarget:@"Target" action:@"action" params:dic shouldCacheTarget:NO]; } @end `