JS code:
share({
text:"test text",
url:"http://codingnext.com",
callback:function(){
console.log('test func');
}
});
Objective-C code:
- (void)share:(NSDictionary *)params {
NSString *text = params[@"text"];
NSString *url = params[@"url"];
JSValue *callBack = params[@"callback"];
[callBack callWithArguments:nil];
}
I got the right text and url ,but the wrong callback.I want to know why and how to fix it .