问题
How can we answer an incoming voice call programmatically using Objective-C on an iPhone?
回答1:
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.
来源:https://stackoverflow.com/questions/5219526/programmatically-answer-an-incoming-phone-call-on-iphone