iOS获取设备UUID

来源:互联网 发布:pw域名不用备案吗 编辑:程序博客网 时间:2024/05/16 12:53

在项目中写上以下代码,可以获取iOS设备的UUID

    UIDevice *device = [UIDevice currentDevice];    NSUUID *uuid = device.identifierForVendor;    NSString *str = uuid.UUIDString;    NSLog(@"UUIDString%@",str);
0 0