Created
October 20, 2011 08:53
-
-
Save naotokui/1300719 to your computer and use it in GitHub Desktop.
UUID String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSString *) uniqueId | |
{ | |
CFUUIDRef uuid = CFUUIDCreate(NULL); | |
NSString *identifier =(NSString *)CFUUIDCreateString(NULL, uuid); | |
CFRelease(uuid); | |
return [identifier autorelease]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
doesn't have to be a class method.