tags:

views:

367

answers:

1

Two part question:

  • Does the iPhone have a unique ID other than it's MAC address?
  • If so, is there an API call I can use to get it?

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

+1  A: 

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;
JonathonW