"Generate GUID on iPhone"

Mon 11 May 2009

+(NSString*)GUIDString {

    CFUUIDRef theUUID = CFUUIDCreate(NULL);

    CFStringRef string = CFUUIDCreateString(NULL, theUUID);

    CFRelease(theUUID);

    return [(NSString *)string autorelease];

}