调用系统电话
2015-12-28 14:18
260 查看
第一种:
第二种:
第三种(私有方法,不能通过审核):
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];
第二种:
UIWebView*callPhoneWebview =[[UIWebView alloc] init]; NSURL *telURL =[NSURL URLWithString:@"tel:10086"]; //(tel:// 或者 tel: 都行) [callWebview loadRequest:[NSURLRequest requestWithURL:telURL]]; //最后添加到view上 [self.view addSubview:callWebview];
第三种(私有方法,不能通过审核):
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]];
相关文章推荐
- 设计模式之单例模式
- AFNetWorking 关于manager.requestSerializer.timeoutInterval 不起作用的问题
- BZOJ 3631: [JLOI2014]松鼠的新家
- Android--LowMemoryKiller知识点补充
- 将博客搬至CSDN
- Runtime 使用实例
- PHP - 解决 php-cgi 启动时提示缺少 msvcr110.dll 的问题
- iOS个推消息推送的使用
- TinyOS08:Avrora学习笔记
- 【深入ASP.NET原理系列】--ASP.NET请求管道、应用程序生命周期、整体运行机制
- USB集线器基础知识
- Spring注解
- ln ,lg,log在c语言中的表示
- NDK调用
- ViewPager嵌套事件冲突问题(dispatchTouchEvent)
- dbms_redefinition
- 猫猫学iOS之UITextField右边设置图片,以及UITextField全解
- Cloud Insight!StatsD 系监控产品新宠!
- PHP isset()与empty()详解
- Eclipse中使用SVN插件Subclipse - 提交、更新、解决冲突、合并