NSURL *url = [NSURL URLWithString:@"http://www.stackoverflow.com"]; if (![[UIApplication sharedApplication] openURL:url]) { NSLog(@"%@%@",@"Failed to open url:",[url description]); }
NSURL *url = [NSURL URLWithString:@"http://www.stackoverflow.com"];
if (![[UIApplication sharedApplication] openURL:url]) {
NSLog(@"%@%@",@"Failed to open url:",[url description]);
}
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.google.com"]];
No comments:
Post a Comment