FutureTap develops app to retrieve iOS device colors

Screen Shot 2013-10-17 at 12.58.07 PM

The guys at FutureTap are back at it again, this time around they have found an API that reveals the hardware device color of iPhone, iPad and iPod touch. The API has two parts to it, the first one finds the color for the front side, while the second part finds the device color for the bezel and backside of the device. If you are interested then this is the code needed to get these values:

UIDevice *device = [UIDevice currentDevice];
SEL selector = NSSelectorFromString([device.systemVersion hasPrefix:@"7"] 
? @"_deviceInfoForKey:" :  @"deviceInfoForKey:");
NSLog(@"DeviceColor: %@ DeviceEnclosureColor: %@", [device 
performSelector:selector withObject:@"DeviceColor"], [device 
performSelector:selector withObject:@"DeviceEnclosureColor"]);

Peter Maurer was the first one to post where the  file system location for artwork of the various iOS devices:

/System/Library/CoreServices/CoreTypes.bundle/Contents/Library
/MobileDevices.bundle/Contents/Resources/

Armed with this knowledge the guys at FutureTap then went ahead and wrote a small demo app that has the sole purpose of displaying the artwork and the device colors and lets you share them.

However as mentioned earlier this is a private API and therefore you cannot use it in an App for the App Store as these will get rejected.

Leave a Reply

Your email address will not be published. Required fields are marked *