Created
August 31, 2011 16:45
-
-
Save monkeydom/1184018 to your computer and use it in GitHub Desktop.
ARC UUIDString generation method.
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 *)UUIDString { | |
CFUUIDRef myUUID = CFUUIDCreate(NULL); | |
NSString *myUUIDString = CFBridgingRelease(CFUUIDCreateString(NULL, myUUID)); | |
CFRelease(myUUID); | |
return myUUIDString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is no template yet - just a try. Need others to verfiy and maybe some time to let things settle in…