Instantly share code, notes, and snippets.
This is a snippet that returns a UUID in an ARC compatible way.
This implementation is a method that you can drop into a class - if you like you can rewrite it as a class method in an NSString category
For methods that only require uniqueness across a network, eg, filenames for dynamically created resources in an app, - something simpler like [[NSProcessInfo processInfo] globallyUniqueString] might suit.
[[NSProcessInfo processInfo] globallyUniqueString]