How can a CocoaTouch application respond to clicking an HTML input button inside a UIWebView?

Ive got a UIWebView inside a Cocoa Touch app.

I would like to have <input type='submit'>or <input type='button'>, and if the user clicks this button, I would like to respond inside the application.

Is there a solution for delegate / callback / javascript?

Regards

ch.h

+3
source share
1 answer

First, in your web view, you need to invoke the loading of a URL that uses a custom URL scheme (e.g. appAction: //).

webView:shouldStartLoadWithRequest:navigationType: UIWebView URL. URL-, , , .

, fooobar.com/questions/376808/....

+1

All Articles