【发布时间】:2021-06-18 21:10:12
【问题描述】:
我正在尝试连接 Swift 5 和现有的 Objective c 函数。通常,Cordova 请求会命中 Swift 层,该层又调用 Objective C 并将结果返回给 Cordova。在编译期间,我收到此错误
NSLog(@"Result : %@ ", result);
CDVPluginResult* pluginResult;
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:result];
// Below line throwing "No known class method for selector 'commandDelegate'"
[[self commandDelegate] sendPluginResult:pluginResult callbackId:command.callbackId];
【问题讨论】:
标签: ios swift objective-c cordova