From iPhone Development Wiki
Revision as of 14:12, 26 December 2017 by Kirb (talk | contribs) (link a really useful relevant blog post)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.


// Common form: MGCopyAnswer(CFStringRef string);
CFStringRef value = MGCopyAnswer(kMGDeviceColor);
NSLog(@"Value: %@", value);

MGGetBoolAnswer (iOS 7+)

// CFBooleanRef MGGetBoolAnswer(CFStringRef string);
CFBooleanRef value = MGGetBoolAnswer(CFSTR("UIProceduralWallpaperCapability"));
NSLog(@"Value: %@", (id)value);
  • Note: You are responsible for freeing the value returned by MGCopyAnswer and MGGetBoolAnswer.


External links