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

openURL方法

2015-09-30 00:00 330 查看
UIApplication *app = [UIApplication sharedApplication];

// 打电话
[app openURL:[NSURL URLWithString:@"tel://10086"]];

//发短信
[app openURL:[NSURL URLWithString:@"sms://10086"]];

//发邮件
[app openURL:[NSURL URLWithString:@"mailto://12345@qq.com"]];

//打开一个网页资源
[app openURL:[NSURL URLWithString:@"http://ios.itcast.cn"]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: