且构网

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

如何以编程方式确定我的应用程序正在 iPhone、iPad 或 iPhone 4 上运行?

更新时间:2023-10-20 12:21:34

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.