IOS中拨打电话
2015-04-24 21:51
176 查看
转载至以下地址: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]]
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程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS 拨打电话
- <a href="tel:4000-... IOS的APP调不起来拨打电话
- iOS开发 iOS 10拨打系统电话,弹出框延迟出现问题
- IOS开发之_短信发送与拨打电话
- iOS 3种拨打电话的方式
- ios客户端学习-iOS 识别文字中的手机号码高亮显示点击可拨打电话
- 禁止ios端手机safari浏览器识别数字为link的可拨打电话
- iOS中实现拨打电话功能
- iOS三种拨打电话的方法
- iOS调用拨打电话
- ios 拨打电话系统回调函数
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS开发技巧之:iOS拨打电话(三种方法)
- iOS 拨打电话
- iOS 拨打电话功能的实现
- iOS拨打电话的2种方式
- IOS程序调用拨打电话的两种方式
- iOS拨打电话对话框问题解决