I have a UIWebView that loads a local HTML file from the resources folder.
Now, this HTML file has Javascript inside it.
My question is, is there a way to pass an XCode variable to the HTML file that gets loaded inside the UIWebView which I can pass to the Javascript function in the HTML.
Thanks a lot for any help or suggestion.
You can construct a Javascript string then pass into
-stringByEvaluatingJavaScriptFromString:, e.g.