美文网首页iOS新手学习
Swift & OC 获取 设备UUID

Swift & OC 获取 设备UUID

作者: 無春不欢 | 来源:发表于2016-05-30 11:53 被阅读1197次

swift:

let User_UIID = UIDevice.currentDevice().identifierForVendor?.UUIDString

OC:

NSString * identifierForVendor = [[UIDevice currentDevice].identifierForVendor UUIDString];

同理,还可以获取设备其他一些信息,例如,设备名称,版本号等

相关文章

网友评论

    本文标题:Swift & OC 获取 设备UUID

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