Created
October 29, 2014 07:30
-
-
Save Duraiamuthan/dd1224d1d43bc501168b to your computer and use it in GitHub Desktop.
CFUUID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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