We Recommend

Programming in Objective-C Programming in Objective-C
Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming. The book makes no assumption about prior experience with object-oriented programming languages or with the C language (upon which Objective-C is based). And because of this, both novice and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C.


Posted By

Leech on 09/18/08


Tagged

url safari open iphone SDK


Versions (?)


Open URL in Safari


Published in: Objective C 


URL: http://www.iphonedevsdk.com/forum/iphone-sdk-development/3927-open-safari.html

This is the way to open a specific URL in the Mobile Safari of the iPhone

  1. NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
  2. [[UIApplication sharedApplication] openURL:url];

Report this snippet 

You need to login to post a comment.