Showing posts with label open URL with Safari in iPhone. Show all posts
Showing posts with label open URL with Safari in iPhone. Show all posts

Friday, May 6, 2011

openURL with Safari in iPhone

An example showing how to open an url with Safari. It's quit simple. You can open an url with Safari just like it's an internal method.

NSURL *url = [[NSURL alloc] initWithString: @"http://samplecodebank.blogspot.com/"];
[[UIApplication sharedApplication] openURL:url];