Skip to content

Instantly share code, notes, and snippets.

@Duraiamuthan
Created October 29, 2014 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Duraiamuthan/dd1224d1d43bc501168b to your computer and use it in GitHub Desktop.
Save Duraiamuthan/dd1224d1d43bc501168b to your computer and use it in GitHub Desktop.
CFUUID
CFUUID
CFUUID is available from iOS 2.0. CoreFoundation package (C style API) provide CFUUID. CFUUIDCreate is the method to create the CFUUIDRef and can get an NSString representation of the created CFUUIDRef like :-
CFUUIDRef cfuuid = CFUUIDCreate(kCFAllocatorDefault);
NSString *cfuuidString = (NSString*)CFBridgingRelease(CFUUIDCreateString(kCFAllocatorDefault, cfuuid));
CFUUID is not persisted, every time you call CFUUIDCreate and will get new unique identifier.
e.g. 68883Q11-4D23-5434-9D60-2250E4C90967
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment