您的位置:首页 > 其它

调用系统电话

2015-12-28 14:18 260 查看
第一种:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];


第二种:

UIWebView*callPhoneWebview =[[UIWebView alloc] init];
NSURL *telURL =[NSURL URLWithString:@"tel:10086"];  //(tel:// 或者 tel: 都行)
[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
//最后添加到view上
[self.view addSubview:callWebview];


第三种(私有方法,不能通过审核):

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: