为 iPhone 4 初始化高分辨率 UIView

发布于 2024-09-26 00:12:54 字数 143 浏览 3 评论 0原文

如何在 iphone4 上将 uiview 初始化为高分辨率 (640x960)? 我尝试将 2.0 的比例因子放入 uiview 但没有任何作用 另外,我如何测试运行应用程序的设备是否接受高分辨率,即。这是一部 iphone 4,

提前致谢,Benoit

How can i init a uiview to be in high resolution (640x960) on iphone4?
i tried to put a scaleFactor of 2.0 to the uiview but that did nothing
also how can i test that the device the app is running on accept high resolution ie. it is an iphone 4

thanks in advance, Benoit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东北女汉子 2024-10-03 00:12:54

当你在 iPhone 4 上启动你的应用程序时,这一切就已经完成了。

如果你需要更好的图像分辨率,你需要调整大小并在最后用 @2x 重命名。

你想做什么?

文森特

It's already done when you launch your app on a iPhone 4.

If you need better image resolution, you need to adjust the size and rename it with @2x at the end.

What are you trying to do ?

Vincent

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文