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. 回答1: 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. 回答2: There isn't an API that will give you this. Your best bet is to look at the device's screen size (in points) and from that surmise if it's an iPad or iPhone etc., and