1:基本使用:
缺点:拨打完以后不能返回到原来应用上
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://xxxxxxxx"]];
2:推荐使用:--有弹窗
优点:拨打完以后可以返回到原来应用上
UIWebView *webView = [[UIWebView alloc]init];
NSURL *url = [NSURL URLWithString:@"tel://186*****2221"];
[webView loadRequest:[NSURLRequest requestWithURL:url ]];
[self.view addSubview:webView];
3:不建议使用、做了解:--有弹窗
优点:拨打完以后可以返回到原来应用上、但是可能无法上线审核通过呢
NSURL *url = [NSURL URLWithString:@"telprompt://10010"];
[[UIApplication sharedApplication] openURL:url];
友情链接:
http://www.tuicool.com/articles/jUvaaiE
http://www.cnblogs.com/acBool/p/5055364.html?utm_source=tuicool&utm_medium=referral
http://www.jianshu.com/p/3c128dc336fb