0

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

Vincent
  • 1,013
  • 14
  • 33
  • You missed searching for this question.. http://stackoverflow.com/questions/1108859/detect-the-specific-iphone-ipod-touch-model – Matic Oblak Jun 06 '12 at 13:19

1 Answers1

2

Check out UIDevice-Extension:

Add functionality to UIDevice to distinguish between platforms like iPod touch 1G and 2G and iPhone

with the UIDevice-Hardware.h Class its possible to get the:

- (NSString *) platform;
- (NSString *) hwmodel;
- (NSUInteger) platformType;
- (NSString *) platformString;
CarlJ
  • 9,461
  • 3
  • 33
  • 47