Get human readable device model?

I need to grab the device model my iOS code is running on in Objective C. However, as this will be pushed out to an analytic/metric that will be seen by less tech savvy people, i need the advertised model like "iPhone 6S" instead of the comparatively odd-looking "iPhone8,1". If I was to show the less-friendly version I'd get "But there's no such thing as an iPhone 8 yet" complained back at me, no matter how many memos I could send. As a result I'd like to report a human-readable model to them.

I've seen a few questions on here about this, and all i found were opened over 2 years ago, and perhaps updated 1 year ago. Most were referencing a github library that hasn't been updated in an even longer period, while the rest proposed a long, unwieldy list of string conversions that would need constant maintainance. There were a couple of others, but they were also suggesting libraries that I can't integrate into my project for other reasons

Is there any method that could take the pain out of this issue? Anything new in the iOS SDK that supplies this?

Examples of the questions i've seen with out-of-date or unsuitable methods:

iOS - How to get device make and model?

UIDevice currentDevice model possible values

Determine device (iPhone, iPod Touch) with iPhone SDK

链接地址: http://www.djcxy.com/p/50372.html

上一篇: iPod Touch与iPhone作为iPhone应用程序的开发平台相比

下一篇: 获取人类可读的设备模型?