现在本人在用的设备唯一标示方法
利用keychain存储uuid 此方法只要不是重做系统就可一直使用keychain内的uuid
//从钥匙串读取UUID:
NSString *strUUIDString = [SSKeychain passwordForService:@"com.trcbank.jxsh"account:@"user"];
if (strUUIDString.length == 0) {
//给钥匙串中存UUID
CFUUIDRef uuid1 = CFUUIDCreate(NULL);assert(uuid1 != NULL);CFStringRef uuidStr = CFUUIDCreateString(NULL, uuid1);
[SSKeychain setPassword: [NSString stringWithFormat:@"%@", uuidStr]
forService:@"com.trcbank.jxsh"account:@"user"];
strUUIDString = [SSKeychain passwordForService:@"com.trcbank.jxsh"account:@"user"];
}