iOS获取设备UUID

作者: starfox寒流 | 来源:发表于2015-08-21 15:28 被阅读10864次

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

CFStringRef cfstring = CFUUIDCreateString(kCFAllocatorDefault, uuid);

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

方法2:

[[[UIDevice currentDevice] identifierForVendor] UUIDString];

相关文章

网友评论

    本文标题:iOS获取设备UUID

    本文链接:https://www.haomeiwen.com/subject/vapgqttx.html