i would like to know how to call an objective c method from javascript. for example i have a javascript function defined in my myFile.js like this :
function() {
alert('test');
.... // How i can an objective c function here ???
}
i have also a UIWebView :
-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
....
// what to do here ??????
}
thanks for your answer