Created
April 30, 2012 15:40
-
-
Save kristopherjohnson/2559409 to your computer and use it in GitHub Desktop.
Create a new UUID string, ARC-compatible
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 *)makeNewUUIDString { | |
CFUUIDRef uuid = CFUUIDCreate(NULL); | |
CFStringRef string = CFUUIDCreateString(NULL, uuid); | |
CFRelease(uuid); | |
return (__bridge_transfer NSString *)(string); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment