javascript - Is it possible to fire up a pop up like windows from a UIWebView? -


how can make uiwebview's html/javascript trigger uimodalview show on page load?

you can use 1 of following delegates catch page before loads:

- (void)webviewdidstartload:(uiwebview *)webview; - (bool)webview:(uiwebview *)webview shouldstartloadwithrequest:(nsurlrequest *)request navigationtype:(uiwebviewnavigationtype)navigationtype; 

you can check url being loaded with:

[[[webview request] url] absolutestring]; 

then create , show uimodalview.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -