MonoTouch:无法让应用程序在模拟器或手机上以高分辨率 (640x960) 运行

发布于 2024-10-09 20:31:47 字数 286 浏览 0 评论 0原文

我正在开发一个 MonoTouch 应用程序,每当我在 iPhone 4 或模拟器上运行它时,它都会以 320x480 而不是 640x960 的分辨率运行。我已经进入模拟器并选择硬件 -> 设备 -> iPhone (Retina),但模拟器似乎仍然是像素加倍的,并且 UIScreen.MainScreen.Bounds 仍然是 320x480。

我的应用程序是通用应用程序,它以适当的分辨率在 iPad(设备和模拟器)上运行。

我是否缺少一些设置来告诉设备我的应用程序希望以更高分辨率运行(如果设备上可用)?

I'm developing a MonoTouch app and whenever I run it on either the iPhone 4 or the simulator, it runs at 320x480 rather than 640x960. I've gone into the simulator and chosen Hardware->Device->iPhone (Retina), but the simulator still seems to be pixel-doubled and UIScreen.MainScreen.Bounds is still 320x480.

My app is a Universal Application and it runs on the iPad (both device and simulator) at the proper resolution.

Is there some setting I'm missing that tells the device that my app wants to run at the higher resolution if it's available on the device?

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

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

发布评论

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

评论(1

心欲静而疯不止 2024-10-16 20:31:47

由于高分辨率是较新版本的 iOS 的一项功能,因此请确保将项目设置中的 SDK 设置为 4.x,而不是较旧的 3.x 设置。

此外,还有许多其他细节需要考虑,我写了一篇博客文章,介绍如何使我的开源 TweetStation 支持 Retina 显示屏:

http://tirania.org/blog/archive/2010/Jul-20-2.html

Since hi-res is a feature of newer versions of iOS, make sure that you set the SDK in your project settings to 4.x, and not the older 3.x setting.

Additionally, there are many other details that you will want to take into account, I wrote a blog post on what I did to make my open source TweetStation support the Retina Display:

http://tirania.org/blog/archive/2010/Jul-20-2.html

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