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];
同理,还可以获取设备其他一些信息,例如,设备名称,版本号等