Currently, I have some Javascript being executed in my Objective-C code, like so:
[webView stringByEvaluatingJavaScriptFromString:@""
"//...script is here..."
];
The aforementioned script contains some if statements, and depending on certain conditions, I'd like to call certain Objective-C functions (that are in this same file).
Is there a way of doing this? I can't seem to find one.
Would greatly appreciate any help, thank you!