在iPhone上拨打电话 [英] Making phone calls on the iPhone
本文介绍了在iPhone上拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以编程方式在iPhone上拨打电话?
How do I programmatically make phone calls on the iPhone?
推荐答案
试试这个:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8005551212"]];
...这将显示一个对话框,您的用户将在该对话框中确认通话。
... which will bring up a dialog in which your users will confirm the call.
这篇关于在iPhone上拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文