Possible Duplicate:
launch safari from iphone app
How do you launch Safari browser from within an iPad app?
Possible Duplicate:
launch safari from iphone app
How do you launch Safari browser from within an iPad app?
Like this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:yourURLHere]];
NSURL *someHTTP_or_HTTPS_URL;
if ( [[UIApplication sharedApplication] openURL: someHTTP_or_HTTPS_URL] ) {
// success
} else {
// failure
}
Like this [[UIApplication sharedApplication] openURL:[NSURL URLWithString:yourURLHere]];
you can dial number too using this
[[UIApplication sharedApplication] openURL:@"tel://123245655];
enjoy..