How to launch a UIWebView URL in Safari on iPhone

If you have a UIWebView control in your iPhone, iPad or iPodtouch app, you can use the following line of code to open the URL currently viewed in the UIWebView in the mobile Safari.

[[UIApplication sharedApplication] openURL:theWebView.request.URL];

One Response to How to launch a UIWebView URL in Safari on iPhone

  1. Jayson's avatar Jayson says:

    Your style is unique in comparison to other folks I’ve read stuff from. Thank you for posting when you have the opportunity, Guess I will just book mark this blog.

Leave a reply to Jayson Cancel reply