Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I detect the dpi on an ipad 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.

like image 800
dcmet Avatar asked Nov 01 '12 13:11

dcmet


1 Answers

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.

like image 173
woz Avatar answered Oct 21 '22 18:10

woz