2

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 stackoverflow.com and found some relevant answers but all of them are obsolete and doesn't work with iOS 4.0 anymore.

The most famous solution for this problem is

NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];

but as I mentioned this solution no more works with iOS 4.0

As my application is intended towards the jail broken phones and not intended the Apple app store so I am not worried about my app rejection, hence any private API will also work for me.

Also please let me know if we can fetch IMSI number from SIM using any private APIs of iPhone

4

2 回答 2

1

官方不支持,也不建议以编程方式获取用户的个人信息。

此外,SDK 还没有提供任何机制来处理 SIM 中的信息。

于 2010-12-28T15:44:22.033 回答
1

如果你的目标是越狱手机,你可以看看 CoreTelephony 框架。我不经常使用私有 API,所以不能保证这个特定的框架可以为您提供电话号码,但您可能会很幸运。

于 2010-12-28T09:09:03.870 回答