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];