_currentDeviceID = [[self getDeviceID] UUIDString];
// 1、获取设备唯一标识:
- (NSUUID*) getDeviceID{ UIDevice *device = [UIDevice currentDevice]; return device.identifierForVendor;}
获取设备唯一标识
原文:http://www.cnblogs.com/huangh/p/4155914.html