方法1.
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
CFStringRef cfstring = CFUUIDCreateString(kCFAllocatorDefault, uuid);
NSString * uuid = [NSString stringWithFormat:@"%@", uuidStr];
方法2:
[[[UIDevice currentDevice] identifierForVendor] UUIDString];