iPhone屏幕分辨率. 160与163与未来 [英] iPhone Screen Resolution. 160 vs 163 vs. the future

查看:123
本文介绍了iPhone屏幕分辨率. 160与163与未来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个以实际单位显示内容的应用程序. 它不是标尺应用程序,但它需要这种精度.

I'm trying to make an app that displays something in real-world units. It's not a ruler app, but it wants that kind of precision.

iPhone和iPod touch的屏幕分辨率似乎已经不同(分别为160和163)

It already looks like the iPhone and iPod touch have different screen resolutions (160 & 163 respectively)

我发现了这个 在iPhone上计算像素大小 还有这个 未来硬件中iPhone屏幕分辨率的更改 还有这个 http://forums.macrumors.com/showthread.php?t=350612

I've found this Calculating pixel size on an iPhone and this iPhone screen resolution changes in future hardware and this http://forums.macrumors.com/showthread.php?t=350612

从我的阅读看来,我可以将320 * 480的屏幕空间视为2 * 3.5英寸,而忽略了iPod和iPhone分辨率之间的差异,这似乎只影响图像的清晰度,而不影响尺寸.

From my reading it sounds like I can treat the 320 * 480 screen space as 2 * 3.5 inches, ignoring the difference between the iPod and the iPhone resolution, which only seems to affect the clarity of the image, not the size.

我的问题是:这是真的吗?以任何方式在代码中确定此大小(320像素" == 2英寸),因此,如果更改,则不必更新.

My question(s) are: is this true? any way to determine this (320 "pixels" == 2 inches) in code, so if it changes I don't have to update.

推荐答案

我现在不担心它,如果Apple更改了它并且不告诉开发人员,那么他们将失去客户.只需对您的应用进行硬编码即可在这种环境下正常工作.

I wouldn't worry about it for now, if Apple changed it and didn't tell their developers then they would lose customers themselves. Just hard code your app to work in this environment for now.

PPI应该没有什么不同,但是所有其他应用程序都可以正常运行,Apple告诉我们的唯一硬件差异是麦克风,摄像头,互联网连接和电话连接性. (即使PPI不同,无论使用多少英寸,它仍然是320X480像素.)

The PPI shouldn't be different, but all other apps run fine and the only hardware differences Apple tells us to account for are microphone, camera, Internet connection, and phone-ness. (Even if the PPI is different, it's still 320X480 pixels no matter how many inches are used.)

这篇关于iPhone屏幕分辨率. 160与163与未来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆