swift:
let User_UIID = UIDevice.currentDevice().identifierForVendor?.UUIDString
OC:
NSString * identifierForVendor = [[UIDevice currentDevice].identifierForVendor UUIDString];
同理,还可以获取设备其他一些信息,例如,设备名称,版本号等
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
网友评论