Execute Javascript from the native application

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];