3

I'm trying to figure out how an app knows which version of an Idevice it is on? I know how to separate iPhone and iPad within a universal app, but what about the difference between device versions I.e. ipad2, retina iPad. What if I'd like to tell an app it's on an ipad2 and not retina iPad as to not use the retina version of the game or to give the user a choice to pick which version they would pre

  • Duplicate Question of http://stackoverflow.com/questions/1108859/detect-the-specific-iphone-ipod-touch-model ? – pmk May 11 '12 at 16:29
  • possible duplicate of [Programmatically detect an iPad 3 (HD)?](http://stackoverflow.com/questions/9688930/programmatically-detect-an-ipad-3-hd) – Brad Larson May 11 '12 at 17:55

2 Answers2

3

If you care about screen scale you can check if [[UIScreen mainScreen] scale] > 1.

kevboh
  • 5,207
  • 5
  • 38
  • 54
0

You can work this out from the resolution on the device, Retina devices have a resolution twice the size of none Retina devices :)

Bloafer
  • 1,324
  • 7
  • 12