I have an basic test application. It contains a UIWebView.
The website contains links with target="_blank" and some without it. The problem is that what happens is the opposite, the "_blank" open inside the app, and the others open in Safari.
My View controller contains this:
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
[[UIApplication sharedApplication] openURL:request.URL];
return false;
}
return true;
}
How could it be? thanks