Can Anyone let me know what is the difference between creating the Unique Id by these two implementations give below
1)
CFUUIDRef cfuuid = CFUUIDCreate(kCFAllocatorDefault);
NSString *udidString = (NSString*)CFBridgingRelease(CFUUIDCreateString(kCFAllocatorDefault, cfuuid));
2) NSString *guid = [[NSUUID new] UUIDString];
Which one is more reliable as I am working on app from IOS 8 and above.