以编程方式在iPhone上接听来电 [英] Programmatically answer an incoming phone call on iPhone
本文介绍了以编程方式在iPhone上接听来电的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在iPhone上使用Objective-C以编程方式接听来电?
How can we answer an incoming voice call programmatically using Objective-C on an iPhone?
推荐答案
您不能.您甚至都没有收到通知,也没有任何来电.您所能做的就是要求iPhone通过tel:
URI方案拨打一个电话,但您甚至都不知道电话是否确实拨打过该号码.
You can't. You don't even got a notification or whatever that there's an incoming call. All you can do is ask the iPhone to make a call (via the tel:
URI scheme) but you won't even know whether the phone actually did dial the number.
这是出于隐私/反恶意软件的目的,顺便说一句.
That is on purpose for privacy/anti-malware reasons, BTW.
这篇关于以编程方式在iPhone上接听来电的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文