测试已测试 | ✗ |
语语言 | Obj-CObjective C |
许可证 | MIT |
发布最新发布 | 2014年12月 |
由 Arthur Ariel Sabintsev 维护。
由于 Apple 停止更新 iTunes Lookup API 路由中的 supportedKeys
哈希表,我将不再支持此附加组件。
UIDevice
上的一个 Objective-C 分类,根据iTunes Lookup API 调用返回的 JSON 结果中的 supportedDevices 键返回设备。
pod 'UIDevice-SupportedDevices'
或简单地将 UIDevice+SupportedDevices [.h|.m] 添加到您的项目中,并在需要访问所提供信息的类中引用 UIDevice+SupportedDevices.h
。
此类中只有一个类方法。请注意,以下描述中提到的“受支持设备名称”一词是指iTunes Lookup API 调用返回的 JSON 结果中的 supportedDevices 键中的值。
请点击此处查看一个示例,以亲身了解 supportedDevices 键返回的内容。
+ (NSString *)machineName
+ (NSString *)simulatorNamePhone
+ (NSString *)simulatorNamePad
+ (NSString *)supportedDeviceName
请注意以下细节:
该类别的诞生源于