Getting phone UUID through iPhone SDK

//Creating UUID string with Objective C and iOS sdk


+ (NSString*) stringWithUUID {

CFUUIDRef uuidObj = CFUUIDCreate(nil);

NSString *uuidString = (NSString*)CFUUIDCreateString(nil, uuidObj);

CFRelease(uuidObj);

return [uuidString autorelease];

}


//or



[[NSProcessInfo processInfo] globallyUniqueString];


1 comment: