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 protected]> 写道: >2011/12/22 吴明 <[email protected]>: >> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
