Created
April 11, 2014 18:04
-
-
Save jyliang/10488569 to your computer and use it in GitHub Desktop.
unique ID
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 *)createUniqueId { | |
CFUUIDRef cfuuid = CFUUIDCreate(kCFAllocatorDefault); | |
CFStringRef string = CFUUIDCreateString(kCFAllocatorDefault, cfuuid); | |
CFRelease(cfuuid); | |
return CFBridgingRelease(string); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment