如何通过编程拨打电话 [英] How to make a phone call through programming
本文介绍了如何通过编程拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过iOS编程拨打电话?
How to make a phone call through programming in iOS?
推荐答案
使用UIApplication:openURL方法打开其他资源程序。这包括打开邮件,电话号码,谷歌地图搜索等。
Use UIApplication:openURL method to open a resource from other program. This includes opening mail, phone number, google maps search etc..
因此,为了让您使用该方法呼叫某人,您可以使用
So, in order for you to call somebody using the method, you can use
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:123456789"]];
这篇关于如何通过编程拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文