获取iphone手机电话号码

大概ios5.0以下版本可通过以下代码实现:(判断依据:金山电池医生在我用ios4.3时,未经过我的允许便读取到了我的手机号。但我用ios5.1.1时,没有读取到。)

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

 

未读取到手机号码的分析如下:

http://www.cocoachina.com/bbs/simple/?t67622.html

http://perown.blog.163.com/blog/static/35909986201122542417111/

posted @ 2012-08-03 00:18  阳芳  阅读(561)  评论(0编辑  收藏  举报