Programmatically get own Phone Number in iPhone OS 4.0

后端 未结 2 1724
春和景丽
春和景丽 2021-01-15 10:05

I am developing an iPhone application for jail broken phones and in this application I would like to fetch user\'s phone number.

I have gone through the entire stack

相关标签:
2条回答
  • 2021-01-15 10:48

    Officially, it's not supported, nor is it recommended to get the user's personal information programmatically.

    Also, the SDK does not yet provide any mechanism to work with information in the SIM.

    0 讨论(0)
  • 2021-01-15 10:50

    If you're targeting jailbroken phones, you might take a look at the CoreTelephony framework. I don't often work with private APIs, so no guarantees this particular framework makes the phone number available to you, but you might get lucky.

    0 讨论(0)
提交回复
热议问题