How to pass a ObjectiveC string Variable to a javascript function? I have just started with javascript.. so plz 4give my ignorance...
NSString * param = @"foo"; NSString * jsCallBack = [NSString stringWithFormat:@"myFunc('%@')",param]; [webView stringByEvaluatingJavaScriptFromString:jsCallBack];
1.4m articles
1.4m replys
5 comments
57.0k users