IOS中拨打电话
来源:互联网 发布:brew 卸载软件 编辑:程序博客网 时间:2024/04/25 04:49
转载至以下地址: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]];
// 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];
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]]
// NSLog(@"str======%@",str);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]
0 0
- IOS中拨打电话
- iOS-程序中拨打电话
- iOS中实现拨打电话功能
- ios lable中电话号码点击拨打电话
- ios 拨打电话
- IOS开发 拨打电话
- IOS 电话拨打
- IOS 调用拨打电话
- iOS拨打电话
- iOS拨打电话
- IOS 拨打电话
- iOS应用拨打电话
- iOS拨打电话
- IOS 调用拨打电话
- IOS拨打电话方法
- IOS 拨打电话
- IOS 调用拨打电话
- [iOS-GQiang]拨打电话
- HDU 4035 Maze (概率dp)
- 嵌入式CGI 与HTML的数据交换
- 10 CI where数据库操作 以及查询最后一次执行的sql语句
- Find Minimum in Rotated Sorted Array - LeetCode 153
- POJ 3461 Oulipo
- IOS中拨打电话
- sql server用sql导出数据库字典
- 现有一个1G左右的日志文件,大约有500多万行, 用php返回最后几行的内容
- POJ 2752 Seek the Name, Seek the Fame
- 显式调用构造函数和析构函数
- .Net——自定义特性(Custom Attributes)的创建与查看
- 【树莓派学习笔记】关于树莓派在VNC远程登录时,弹出一个GDBus错误窗口的问题!!!
- POJ 2406 Power Strings
- Genymotion+VitualBox安装问题解决(个人版+不断总结更新)