capture an “incoming call”
The framwork has no (public) hooks for phone calls because they don't want apps to interfere with the behavior of iOS.
On the iPhone, there's nothing you can do to "catch" or even register incoming calls. The only thing you could do is create an app that protocols the time at which it has been sent to the background or became inactive, because you'r appdelegate will be notified - but that will happen on many occasions, not only when a phone call is received. It won't work while the app is in the background (on multitasking enabled devices) alltogether. So, an app like this would be totally useless...
Sorry, no help there!
签名:删除冗余的代码最开心,找不到删除的代码最痛苦!