I want to know if there is any proper/Documented way to call objective C functions from JavaScript.. ?
I have managed to get it work using the WebView delegate method:
-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
But still I am not feeling convinced with this way, Are anyone of you aware of some other proper/documented workaround for this .. ?
Thanks for your time.
没关系,我找到了此Link 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.