iphone - How to push a view from a web page? -



iphone - How to push a view from a web page? -

suppose app load local web page stored in app bundle. want force view or nowadays view when user click link or image within web page. how this? let's create general question: how communicate app local web page?

thank you.

use "webview.request.url.absolutestring" request-string of clicked link in delegate-method "webviewdidfinishload:" or "webviewdidstartload:". can scan url special substring.

for illustration create link ".../index.php?iphone_action=abcdef". in delegate-methods can check if link has substring "?iphone_action=" , if does, set part of link, whick follows "?iphone_action=" in nsstring. (in our illustration "abcdef"). depending on value of nsstring fire action in app.

iphone objective-c

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -