I’m trying to make an event which will be called (and will excecute objective-c code on iPhone) when specific button is pressed on a website in webView.
The simple way I think is to listen webView’s HTTP requests.
Can I do that?
I’m trying to make an event which will be called (and will excecute objective-c
Share
In your HTML, give the URL a special scheme. In this example, the scheme is
perform:(You could use
<a hrefhere or other techniques. This example comes from code where usingonclickwas useful.)Set your controller as the delegate of the
UIWebView. Then implement this delegate method: