获取iPhone设备码代码如下:
NSString *idfv = [[[UIDevice currentDevice] identifierForVendor] UUIDString];//获取设备码
NSString *UUIDStr = [idfv stringByReplacingOccurrencesOfString:@"-" withString:@""];//去除"-"分隔符,得到有效的设备码
UUIDStr = [UUIDStr lowercaseString];//将大写字母转换成小写
NSLog(@"设备id -- %@",UUIDStr);