iOS获取设备UUID
2015-08-21 本文已影响10864人
starfox寒流
方法1.
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
CFStringRef cfstring = CFUUIDCreateString(kCFAllocatorDefault, uuid);
NSString * uuid = [NSString stringWithFormat:@"%@", uuidStr];
方法2:
[[[UIDevice currentDevice] identifierForVendor] UUIDString];