API to get an iPhones unique ID?

iphone

Solution

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;

Problem

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)

Original source

Related problems