IOS打电话的3种方法
来源:互联网 发布:淘宝卖家电脑客户端 编辑:程序博客网 时间:2024/06/05 08:31
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);
钱鹿:点击打开链接 注册填11150304有3元红包
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]]
微信扫码关注赚钱
以下软件全部手机都可以用,每天都可以赚到20左右
钱咖:点击打开链接注册填24905420有3元红包钱鹿:点击打开链接 注册填11150304有3元红包
0 0
- IOS打电话的3种方法
- iOS打电话的方法
- iOS打电话的两种方法
- iOS 三种打电话方法
- ios打电话的两种方式
- IOS 原生打电话,发短信,发邮件的方法
- 打电话的3种方式
- ios--打电话 三种方式
- ios--打电话 三种方式
- iOS------打电话 ,发信息,发邮件方法
- iOS------打电话 ,发信息,发邮件方法
- 调用系统打电话的方法
- IOS中打电话的两种方式代码实现
- ios中打电话功能实现的几种方式
- ios打电话
- ios打电话
- iOS 打电话
- IOS打电话
- HDU 4793 Collision + HDU 4798 Skycity 简单几何
- 畅通工程续(最短路)
- 注释的风格 摘自《代码大全》
- Win7引导Ubuntu14.04,安装双系统
- 如何修改tomcat内存大小
- IOS打电话的3种方法
- U盘安装Ubuntu14.04
- Java 运行时监控,第 2 部分: 编译后插装和性能监控
- pycharm mac使用要点
- c 取N中最大的K个数
- 关于python代码的性能
- Linux ls命令最详细用法介绍
- java 图像特效之老照片
- “海归”首选北上广 薪资期望不太高-有感