TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Arthur Ariel Sabintsev.
I am no longer supporting this add-on, as Apple has stopped updating the supportedKeys
hash in the JSON results of the iTunes Lookup API route.
An Objective-C category on UIDevice
that returns devices based on the supportedDevices key in the JSON results returned in an iTunes Lookup API call.
pod 'UIDevice-SupportedDevices'
or simply drop UIDevice+SupportedDevices [.h|.m] into your project, and reference UIDevice+SupportedDevices.h
in the classes need access to the information it provides.
There are only four class methods in this class. Please note that the term supported device name, in the descriptions below, refers to the values in the supportedDevices key in the JSON results returned in an iTunes Lookup API call.
Please click here for an example to witnes, firsthand, what the supportedDevices key returns.
+ (NSString *)machineName
+ (NSString *)simulatorNamePhone
+ (NSString *)simulatorNamePad
+ (NSString *)supportedDeviceName
Please be aware of the following intricacies:
This category was born within issue 35 of the Harpy repository. The underlying idea and part of the research for building this category came from Aaron Brager.