Category to get the iOS Device Name.
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];