在应用程序中调用safari打开网页

来源:互联网 发布:如何复制淘宝店铺宝贝 编辑:程序博客网 时间:2024/05/16 10:15

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://9016098909891"]];  // 打电话

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]]; //调用safari打开网页

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://9016098909891"]];  //发短信

 

原创粉丝点击