Rob
Rob

Reputation: 26324

API to get an iPhones unique ID?

Two part question:

(hopefully this isn't a duplicate, I couldn't find anything on SO)

Upvotes: 3

Views: 2151

Answers (1)

JonathonW
JonathonW

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

Related Questions