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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to