Last active
August 29, 2015 14:08
-
-
Save tylercasson/ab463e9f01b3e8f16710 to your computer and use it in GitHub Desktop.
UDID
This file contains hidden or 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
/** | |
* Link against MobileGestalt | |
*/ | |
OBJC_EXTERN CFStringRef MGCopyAnswer(CFStringRef property) WEAK_IMPORT_ATTRIBUTE; | |
void someFunction() { | |
CFStringRef udid = MGCopyAnswer(CFSTR("UniqueDeviceID")); | |
/* | |
Do stuff with it | |
*/ | |
CFRelease(udid); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment