NSString*result;
if([[[UIDevice currentDevice] systemVersion] floatValue] >6.0)
{
result = [[NSUUID UUID] UUIDString];
}
else
{
CFUUIDRef uuidRef = CFUUIDCreate(NULL);
CFStringRef uuid = CFUUIDCreateString(NULL, uuidRef);
CFRelease(uuidRef);
result = (__bridge_transferNSString *)uuid;
}