iOS 判断设备型号总结
iOS 判断设备型号总结
Swift 工具类
共4Star
详细介绍
UIDeviceUtils
Category to get the iOS Device Name.
Usage
Import header file
#import "UIDevice+XMUtils.h"
To get the platform identfier, eg: iPhone3,1
, iPad7,4
NSString *platform = [UIDevice platform];
To get the platform name, eg: iPhone 7
, iPhone X
, iPad Pro 10.5-inch
NSString *platformString = [UIDevice platformString];
To get the iOS device name, the same as platformString
NSString *deviceName = [UIDevice deviceName];