码迷,mamicode.com
首页 > Web开发 > 详细

openurl 跳转

时间:2016-06-24 18:43:46      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

1.拨打电话:

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://68979"]]; //直接拨打
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://68979"]]; //弹出确订提示


2.调用Safari打开网址:

 

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.baidu.com"]];

 

3.发送邮件:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://260548721@qq.com"]];


4.发送短信:

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://68979"]];

 

5.打开Appstore:

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/us/app/id%@", AppID]]];

 

 

IOS 8開始支持跳转到应用的设置页:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

openurl 跳转

标签:

原文地址:http://www.cnblogs.com/rexzhao/p/5614929.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!