How would I expose an Objective-C method within JavaScript when using the iPhone SDK when using the UIWebView?
UIWebView
Any help would be appreciated!
The best way to do this would be through a custom link, and then use the UIWebView delegate method -webView:shouldStartLoadWithRequest:navigationType: to trap requests. When you see a request come through with your link in it, you know your action has been triggered.
-webView:shouldStartLoadWithRequest:navigationType:
2.1m questions
2.1m answers
60 comments
57.0k users