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. zlib-1.2.7/libpng-1.5.9 instead of zlib-1.2.8/libpng-1.6.6
  2. Unshelve Instance 操作详解 - 每天5分钟玩转 OpenStack(39)
  3. 修改js confirm alert 提示框文字的简单实例
  4. gulp-rev:项目部署缓存解决方案----gulp系列(六)
  5. 浅析 - Storyboard / Xib
  6. LeetCode OJ 274. H-Index
  7. Firefly卡牌手游《暗黑世界V1.5》服务器端源码+GM管理后台源码
  8. Servlet课程0426(九)Servlet服务器端创建Cookie和客户端读取Cookie
  9. 未能加载文件或程序集“System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”
  10. 母版页中ContentPlaceHolder 控件的作用
  11. Fox And Jumping
  12. python3.4 安装 scrapy 报错 VS2010
  13. unity 球体表面平均分割点
  14. Vuex初级入门及简单案例
  15. vMware 按装 MacOs
  16. <<c专家编程>>笔记
  17. android使用inject需要注意的地方
  18. 05文件合并脚本--By Mark Lutz
  19. C++中重载(overload)、覆盖(override)与隐藏(oversee)
  20. Flex 排序 SortField and Sort

热门文章

  1. QTableWidget 用法总结(只能使用标准的数据模型,并且其单元格数据是QTableWidgetItem的对象)
  2. ZOJ 2760 How Many Shortest Path
  3. 简单Mysql思维导图
  4. bootstrap完整导航栏
  5. checkbox 与JS的应用
  6. 有利于SEO的DIV+CSS规范小结
  7. memcached几个easy被忽略但很实用的命令
  8. 基于bootstrap的datatable控件
  9. PLSQL Developer安装(Oracle11g+win7_64bit)
  10. .net对文件的操作之文件读写