There are a couple good examples on SO about CFUUID, notably this one:
How to create a GUID/UUID using the iPhone SDK
But it was made for pre-ARC code, and I'm not a CF junkie (yet), so can someone provide example code that works with ARC?
+ (NSString *)GetUUID
{
CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreateString(NULL, theUUID);
CFRelease(theUUID);
return [(NSString *)string autorelease];
}