m (→MGGetBoolAnswer (iOS 7+): Correction.) |
|||
Line 17: | Line 17: | ||
NSLog(@"Value: %d", value); | NSLog(@"Value: %d", value); | ||
</source> | </source> | ||
== References == | == References == |
Revision as of 01:36, 23 February 2019
libMobileGestalt is a library that can be used to get various system values such as the UDID, disk usage, device version and much more. It is comparable to liblockdown.dylib. See also lockdownd.
MGCopyAnswer
// Common form: MGCopyAnswer(CFStringRef string);
CFStringRef value = MGCopyAnswer(kMGDeviceColor);
NSLog(@"Value: %@", value);
CFRelease(value);
MGGetBoolAnswer (iOS 7+)
// Boolean MGGetBoolAnswer(CFStringRef key);
Boolean value = MGGetBoolAnswer(CFSTR("UIProceduralWallpaperCapability"));
NSLog(@"Value: %d", value);
References
External links