0

Possible Duplicate:
launch safari from iphone app

How do you launch Safari browser from within an iPad app?

Community
  • 1
  • 1
Daniel Kivatinos
  • 24,088
  • 23
  • 61
  • 81

3 Answers3

3

Like this:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:yourURLHere]];
Matthew Frederick
  • 22,245
  • 10
  • 71
  • 97
1
NSURL *someHTTP_or_HTTPS_URL;
if ( [[UIApplication sharedApplication] openURL: someHTTP_or_HTTPS_URL] ) {
    // success
} else {
    // failure
}
Costique
  • 23,712
  • 4
  • 76
  • 79
0

Like this [[UIApplication sharedApplication] openURL:[NSURL URLWithString:yourURLHere]];

you can dial number too using this

[[UIApplication sharedApplication] openURL:@"tel://123245655];

enjoy..

Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100