Customizations and Extensions / Use front calls |
How to execute Javascript from the native application
Call stringByEvaluationJavaScriptFromString with the javascript as parameter.
// In your Javascript files: function myJavascriptFunction (myParam) { // Do whatever your want! } // ----------------------------------- // And in your Objective-C code: // Call Javascript function from Objective-C: [webview stringByEvaluatingJavaScriptFromString:@"myJavascriptFunction(%@)", myParam];