买不来的iOS实用技巧

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];

上一篇 下一篇

猜你喜欢

热点阅读