Generate Unique GUID in iOS sdk


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.