Re: How to get the phone number use ios sdk in iphone.
Re: How to get the phone number use ios sdk in iphone.
- Subject: Re: How to get the phone number use ios sdk in iphone.
- From: Conrad Shultz <email@hidden>
- Date: Thu, 22 Dec 2011 17:05:38 -0800
On 12/22/11 4:50 PM, 吴明 wrote:
> Thanks
> I will use the UUID or DeviceID instead of the phone number.
The device ID (UIDevice's -uniqueIdentifier) is deprecated in iOS 5.
Don't use it. (As you can probably gather, Apple is rightfully keen on
preventing developers from trying to track users in non-anonymized ways.)
CFUUID is fine, but keep in mind that if you are storing it in
NSUserDefaults then this presumably is not actually device-specific but
app-specific, in the sense that a backup-and-restore ought to preserve
the NSUserDefaults database across devices (say, if the user upgrades
from an older iPhone to a newer one).
Now, you haven't said *why* you are doing all this. I can't think of a
good reason why you would need a true device identifier in your
application, so hopefully the above caveat won't affect you.
If you would like, perhaps you can elaborate on your goal?
--
Conrad Shultz
Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________
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