IOS 应用中 打开 电话, 邮箱, 网站等URL
2014-06-25 15:47
127 查看
手机
电话:
[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@",tel]];
网址:
[NSString stringWithFormat:@"http://%@",website];
邮箱:
[NSURL URLWithString:[NSString stringWithFormat:@"mailto://%@",email]];
打开:
if ([[UIApplication sharedApplication] canOpenURL:callUrl]) {
[[UIApplication sharedApplication] openURL:callUrl];
}
[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@",mobile]];
电话:
[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@",tel]];
网址:
[NSString stringWithFormat:@"http://%@",website];
邮箱:
[NSURL URLWithString:[NSString stringWithFormat:@"mailto://%@",email]];
打开:
if ([[UIApplication sharedApplication] canOpenURL:callUrl]) {
[[UIApplication sharedApplication] openURL:callUrl];
}
相关文章推荐
- 通过手机浏览器,打开ios设备上应用/通过url schema打开本地应用
- iOS-打开外部应用、Safari、邮箱等
- ios7版 30天精通iPhone手机编程 第3天 打开网站URL连接
- ios应用中调用系统电话、浏览器、地图、邮件等 以及打开其他应用(如qq,msn)
- iOS:开放平台引用(一)--应用外打开app / respond to a custom URL scheme
- iOS开发-- 开发细节(打开电话,safari,地图,导航,短信,邮箱)
- ios打开第三方应用的用法及一些URL
- ios 应用中打开其他应用(如qq,msn,yahoo messenger) 通过url scheme(转)
- iOS 应用中打开其他应用
- 打开网站Url连接
- iOS应用内打开App Store应用详情界面
- 在IOS应用中打开另外一个应用的解决方案
- IOS打开应用商店应用的几种方式
- 自定义url打开应用 iphone
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- MOSS 2007应用日记(1)――如何修改网站URL - [MOSS 2007应用日记]
- 让iOS的应用程序在点击设备的home键返回桌面后,再次打开应用进入启动画面
- java 高级应用----HttpURLConnection + Pattern----抓取网站分页文本数据+简单整理
- [原创] C#获取我的收藏网站及打开URL