且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式确定我的应用程序是在iPhone,iPad还是iPhone 4上运行?

更新时间:2023-10-20 12:29:28

在iPad和iPhone之间 - 已经 已回答 很多

iPhone和iPhone 4之间 - 报告的尺寸为仍然 320× 480,因此您无需更改任何有关坐标的信息。如果您需要高分辨率UI图像,请为图像创建 @ 2x 备选方案。

Between iPhone and iPhone 4 — The size reported is still 320×480, so you don't need to change anything about the coordinates. Create an @2x alternative for the images if you need a high resolution UI image.