Well, I have an app that is just a web view that loads a website. I would like that, when I click on a link, that link opens in a new Safari window BUT recognizing the 'apple-mobile-web-app-capable'
meta tag I have on that new site, just as if I would have added that site to the home screen.
Is that possible?
Cheers!
You should check the delegate methods of the WebView -
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType;
Where you can check the URL pattern and return NO and open that URL in safari programatically.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.