iOS新手学习

Swift & OC 获取 设备UUID

2016-05-30  本文已影响1197人  無春不欢

swift:

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

OC:

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

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

上一篇 下一篇

猜你喜欢

热点阅读