Skip to content

Instantly share code, notes, and snippets.

@naotokui
Created October 20, 2011 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naotokui/1300719 to your computer and use it in GitHub Desktop.
Save naotokui/1300719 to your computer and use it in GitHub Desktop.
UUID String
+ (NSString *) uniqueId
{
CFUUIDRef uuid = CFUUIDCreate(NULL);
NSString *identifier =(NSString *)CFUUIDCreateString(NULL, uuid);
CFRelease(uuid);
return [identifier autorelease];
}
@naotokui
Copy link
Author

doesn't have to be a class method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment