How to make WebView links open into Safari

Updated on June 9, 2017 in Objective-C
1 on March 30, 2017

Hello. I am creating a simple WebView app and I am running into 1 problem. Instead of opening links into Safari it just opens in the Application. Is there a code I can put into it that will make it open all links into Safari? Thanks!

-Brandon

 
  • Liked by
Reply
0 on June 9, 2017

Using UIWebViewDelegate with this methode 

to detect when the user clicking on a link 

and than you can open the link with UIApplication and this methode

 

  • Liked by
Reply
Cancel
Loading more replies