iOS获取设备UUID

方法1.
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);

CFStringRef cfstring = CFUUIDCreateString(kCFAllocatorDefault, uuid);

NSString * uuid = [NSString stringWithFormat:@"%@", uuidStr];

方法2:

[[[UIDevice currentDevice] identifierForVendor] UUIDString];

你可能感兴趣的:(iOS获取设备UUID)