For opening a Web Link/URL from an iPhone application, follow the two simple steps.
Step 1 :
Create an NSURL object and initialize it with your URL string

 NSURL *myURL = [NSURL URLWithString:@"http://www.coderzheaven.com/"];


Step 2 :
Use the openURL method by passing your NSURL object

[[UIApplication sharedApplication] openURL: myURL];

Done. 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.