Search code examples
iphoneiosipadscreenscreen-size

iOS get physical screen size programmatically?


Is this possible? I want the number of inches, not the number of pixels. I know it is approximately 160 ppi. But not exactly.


Solution

  • If it were available it would be in UIScreen or UIDevice but it is not there.

    You can infer it from info in Erica's UIDevice-extension and the specs for each device listed here on Wikipedia.