Ios – How to detect the dpi on an ipad mini

iosipadipad-mini

I've got an ipad app with some pretty small touch points that are just barely acceptable on the 10 inch screen of a normal ipad. I'd like to be able to get the device dpi so I can scale up the size of the small elements for the mini and whatever future mini's that are released.

Best Answer

The DPI is 163 pixels per inch (ppi):

http://www.apple.com/ipad-mini/specs/

You cannot get this programmatically, so you will need to store as a constant in your code.

Related Topic