iOS 拨打电话三种方式总结
来源:互联网 发布:golang.org上不去 编辑:程序博客网 时间:2024/04/30 13:51
iOS 拨打电话三种方式总结

转自:http://blog.csdn.net/ouy_huan/article/details/30506925

1,这种方法,拨打完电话回不到原来的应用,会停留在通讯录里,而且是直接拨打,不弹出提示
NSMutableString * str=[[NSMutableString alloc] initWithFormat:@”tel:%@”,@”186xxxx6979”];
// NSLog(@”str======%@”,str);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
2,这种方法,打完电话后还会回到原来的程序,也会弹出提示,推荐这种
NSMutableString * str=[[NSMutableString alloc] initWithFormat:@”tel:%@”,@”186xxxx6979”];
UIWebView * callWebview = [[UIWebView alloc] init];
[callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:str]]];
[self.view addSubview:callWebview];
[callWebview release];
[str release];
3,这种方法也会回去到原来的程序里(注意这里的telprompt),也会弹出提示
NSMutableString * str=[[NSMutableString alloc] initWithFormat:@”telprompt://%@”,@”186xxxx6979”];
// NSLog(@”str======%@”,str);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式总结
- iOS 拨打电话三种方式
- iOS 拨打电话的三种方式
- 拨打网络电话--- iOS 拨打电话的三种方式
- 拨打电话(三种方式)
- iOS 三种拨打电话
- iOS开发-拨打电话的三种方式
- 一起talk C栗子吧(第一百四十七回:C语言实例--流socket通信过程)
- 如何隐藏APP名字
- http编程
- NSURLConnectionDelegate NSURLConnectionDataDelegate
- [Lesson Learn] LeetCode #3 Longest Substring Without Repeating Characters
- iOS 拨打电话三种方式总结
- PHP内核探索:新垃圾回收机制说明
- android源码settings中显示所有正在运行进程流程分析
- 寻找二维矩阵里的一个数
- protobuf的C简单的代码例子(一)
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- android settings源代码分析(1)
- iOS开发中xcode错误和异常处理
- android settings源代码分析(2)