您的位置:首页 > 运维架构 > 网站架构

IOS 应用中 打开 电话, 邮箱, 网站等URL

2014-06-25 15:47 127 查看
手机
[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];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  URL