<分区>
<分区>
Possible Duplicate:
Incoming call information+iphone
我是 iPhone 初学者。如何在 iPhone 接到电话时获取号码。我对此没有基本的想法。谁能帮帮我?
最佳答案
您无法获得此信息,如果 Apple 将此功能添加到他们的 sdk,我会感到非常惊讶。周围会有很多人会滥用此功能。
关于电话,您最多只能使用 Core Telephony framework .它可以让您检测调用的状态。
A CTCarrier object gives you information about the user’s cellular service provider, such as whether it allows use of VoIP (Voice over Internet Protocol) on its network. A CTCall object gives you information about a current call, including a unique identifier and state information—dialing, incoming, connected, or disconnected(emphasis mine).
就是这样。
刚刚阅读this还。可能有帮助
关于ios - iphone接到电话时如何获取号码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5509670/