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
Post a Comment