3

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)

Rob
  • 25,984
  • 32
  • 109
  • 155

1 Answers1

7

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
  • 857
  • 7
  • 17
  • 3
    Just to inform the late comers to this question, the said method is now deprecated in `iOS5`. – IBG Feb 09 '12 at 02:44