iPhone 来电时如何获取号码

发布于 2024-10-28 19:02:03 字数 229 浏览 5 评论 0原文

可能的重复:
来电信息+iphone

我是 iPhone 初学者。 iPhone 来电时如何获取号码。我对此没有基本的想法。谁能帮助我吗?

Possible Duplicate:
Incoming call information+iphone

I am beginner for iPhone. How to get number when call is received in iPhone . I don't have basic idea about that. Can anyone help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心在旅行 2024-11-04 19:02:03

您无法获得此信息,如果 Apple 将此功能添加到他们的 sdk 中,我会感到非常惊讶。周围会有很多人会滥用这个功能。

您最多可以使用 核心电话框架。它可以让您检测呼叫的状态。

CTCarrier 对象为您提供有关用户蜂窝网络的信息
服务提供商,例如是否允许使用 VoIP(Voice over
Internet 协议)在其网络上。 CTCall 对象为您提供
有关当前呼叫的信息,包括唯一标识符和
状态信息 — 拨号、传入、已连接或
断开连接
(强调我的)。

就是这样。

也请阅读。可能有帮助

There is no way you can get this information, and I would be very surprised if Apple add this feature ever to their sdk. There will be lot of people around who will misuse this feature.

The most you can get about a phone call is using Core Telephony framework. It lets you detect the status of the call.

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).

That is it.

Just read this also. Might be helpful

你与清晨阳光 2024-11-04 19:02:03

我不确定这是否可能。苹果不允许这样做。
如果您一直在使用的某个应用程序捡到一个给您打电话的电话号码并将其发布到互联网上,您会喜欢吗?这可能是苹果不允许这样做的原因之一......

I am not sure if this is possible. Apple does not allow this.
Would you like it if one of your apps that you had been using picked up a phonenumber that called you and posted it on the internet? That may be one of the reasons why apple doesn't allow this…

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文