UIApplication *app = [UIApplication shareApplication];
1>.打电话
[app openURL:[NSURL URLWithString:@"tel://10086"]];
2>.发短信
[app openURL:[NSURL URLWithString:@"sms://10086"]];
3>.发邮件
[app openURL:[NSURL URLWithString:@"mailto://****@qq.com"]];
4>.打开一个网页
[app openURL:[NSURL URLWithString:@"http://www.baidu.com"]];
5>.打开其它app程序
……
时间: 2024-11-05 18:33:26