##Generat UUID String ###Objective-C
Last active
December 11, 2015 18:09
-
-
Save kelp404/4639909 to your computer and use it in GitHub Desktop.
Generat 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
CFUUIDRef uuid = CFUUIDCreate(NULL); | |
CFStringRef s = CFUUIDCreateString(NULL, uuid); | |
NSString *result = [NSString stringWithString:(__bridge NSString *)s]; | |
CFRelease(s); | |
CFRelease(uuid); | |
// result = E15C95D5-609E-49DC-B893-2AC14F8F60A2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment