11

Does the SDK provide an API for retrieving the current phone's UUID?

Sophie Alpert
  • 139,698
  • 36
  • 220
  • 238
4thSpace
  • 43,672
  • 97
  • 296
  • 475

1 Answers1

18
[[UIDevice currentDevice] uniqueIdentifier]
Sophie Alpert
  • 139,698
  • 36
  • 220
  • 238
  • Yes - I saw that from here http://stackoverflow.com/questions/427180/how-to-create-a-guid-uuid-using-the-iphone-sdk but the OP was asking how to generate a new UUID, not get the phone's UUID. It threw me off. Thanks. – 4thSpace May 14 '09 at 22:21
  • 2
    This is deprecated now. So far I've `CFUUIDRef`, but no Cocoa counterpart… – Potatoswatter Jul 09 '12 at 09:09