ios中拨打电话的三种方法
来源:互联网 发布:家装装修设计软件 编辑:程序博客网 时间:2024/04/29 00:52
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]]
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]]
0 0
- ios中拨打电话的三种方法
- iOS拨打电话的三种方法
- iOS拨打电话的三种方法
- iOS三种拨打电话的方法
- iOS 拨打电话的三种方法
- ios 拨打电话 三种方法
- iOS拨打电话(三种方法)
- iOS拨打电话(三种方法)
- iOS拨打电话(三种方法)
- iOS拨打电话(三种方法)
- iOS拨打电话(三种方法)
- iOS 拨打电话的三种方式
- 拨打网络电话--- iOS 拨打电话的三种方式
- iOS 三种拨打电话
- ios 拨打电话的方法
- iOS开发-拨打电话的三种方式
- iOS 代码拨打电话的三种方式
- IOS拨打电话方法
- 用springAOP解决权限问题
- RNN入门详解及TensorFlow源码实现--深度学习笔记
- css3 小三角的用法
- Dynamics 365 Update0.1 修复了web api中fetchxml的linkentity的属性的FormattedValues无效的问题
- 基于DragonBoard 410c的遥控炮台六之控制协议优化(上)
- ios中拨打电话的三种方法
- 单例模式记录
- 基于DragonBoard 410c的遥控炮台七之控制协议优化(中)
- Android-Error: Error parsing E:\Andriod\system-images\android-23\android-wear\armeabi-v7a\devices.xm
- C语言整理
- 多层路由下的Mycloud 启用云访问
- STL1
- datatables是jQuery的控件,amazeUI沿用了此控件
- python os.path模块