Opening popup links in UIWebView, possible?

Posted by Jasarien on Stack Overflow See other posts from Stack Overflow or by Jasarien
Published on 2009-08-07T14:54:10Z Indexed on 2010/04/16 1:43 UTC
Read the original article Hit count: 395

Filed under:
|
|
|
|

Hey guys,

I have a UIWebView which I'm using as an embedded browser within my app.

I've noticed that links in webpages that open new windows are ignored without any call into my code.

I've tried breakpointing on

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

and then selecting a link that would open a popup window, and the breakpoint is never hit. Is there anything I can do to intercept that selection of the popup link and get the URL and just load it normally?

I'm not interested in displaying a popup window in the app itself, I just want the URL of whatever is going to be loaded in the popup window to load in the main webview itself.

Is this possible?

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiwebview