Does the SDK provide an API for retrieving the current phone's UUID?
Asked
Active
Viewed 5,449 times
1 Answers
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
-
2This is deprecated now. So far I've `CFUUIDRef`, but no Cocoa counterpart… – Potatoswatter Jul 09 '12 at 09:09