For some reason, I need to know the model version of the device running my app.
I don’t need to know the version of iOS running on the device, but the version of the device, for example : “iPhone 3G”, “iPhone 4S”, “iPad 2”, …
It doesn’t seem that the UIDevice class gives this info :
Identifying the Device and Operating System
name property
systemName property
systemVersion property
model property
localizedModel property
userInterfaceIdiom property
uniqueIdentifier property Deprecated in iOS 5.0
Did I miss anything ?
Thanks
Check out UIDevice-Extension:
with the
UIDevice-Hardware.hClass its possible to get the: