Reputation: 26324
Two part question:
(hopefully this isn't a duplicate, I couldn't find anything on SO)
Upvotes: 3
Views: 2151
Reputation: 867
The iPhone does have a unique identifier, called the UDID (this is the same identifier used when setting up a device for development or when doing ad hoc distribution). You can retrieve it as so:
NSString *uniqueIdentifier = [UIDevice currentDevice].uniqueIdentifier;
Upvotes: 7