lxqljc / UIDeviceUtils

iOS 判断设备型号总结

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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];

Reference

About

iOS 判断设备型号总结

License:MIT License


Languages

Language:Objective-C 100.0%