Posted By

yasirmturk on 09/29/11


Tagged

guid ios


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

yasirmturk
cnathan


Generate Unique GUID in iOS sdk


 / Published in: Objective C
 

  1. +(NSString*)GUIDString {
  2. CFUUIDRef theUUID = CFUUIDCreate(NULL);
  3. CFStringRef string = CFUUIDCreateString(NULL, theUUID);
  4. CFRelease(theUUID);
  5. return [(NSString *)string autorelease];
  6. }

Report this snippet  

You need to login to post a comment.