Re:Re: How to get the phone number use ios sdk in iphone.
Re:Re: How to get the phone number use ios sdk in iphone.
- Subject: Re:Re: How to get the phone number use ios sdk in iphone.
- From: 吴明 <email@hidden>
- Date: Thu, 22 Dec 2011 23:37:24 +0800 (CST)
Thanks
I got some of the way by Google.
1.
[[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];
2.
Use CTSettingCopyMyPhoneNumber();
This function is included in Coretelephony framework.
3.
Get all contacts phone number by addressbook framework. Then get the phone number.
I don't know whether these ways are feasible.
在 2011-12-22 17:42:44,"Kyle Sluder" <email@hidden> 写道:
>2011/12/22 吴明 <email@hidden>:
>> How to get the phone number use ios sdk in iPhone.?
>
>Not gonna happen. iOS does not allow you to access this information.
>
>--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden