I have an small embedded UIWebView for my about-section of the app. When the user taps a link in there, the link opens in that small embedded UIWebView which of course has no navigation controls and isn’t full-screen. I don’t like that. Can I force it to open links with Safari instead?
Share
You can implement the
shouldStartLoadWithRequestmethod of the UIWebViewDelegate protocol to intercept link clicks. Inside that method you can use UIApplication’sopenURLmethod to cause the url to be opened in the appropriate application (ie. Safari for HTTP/HTTPS).