如何在运行时启用/禁用视网膜显示支持?

发布于 2024-12-27 07:20:44 字数 162 浏览 4 评论 0原文

我们需要提供一个在 iPhone4 上使用视网膜显示屏的应用程序,但在 iPod Touch 上不使用,但我能找到的控制本机分辨率的唯一方法是应用程序描述符中的 requestsDisplayResolution 标记。

有没有办法使用 Actionscript 或本机扩展在运行时更改此设置?

We need to deliver a single app which uses the retina display on the iPhone4 but not the iPod Touch, but the only way I can find to control the native resolution is the requestedDisplayResolution tag in the app descriptor.

Is there a way to change this at runtime using Actionscript or a native extension?

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

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

发布评论

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

评论(2

随梦而飞# 2025-01-03 07:20:44

我希望此时您已经找到了问题的答案。但我会在这里为那些像我和你一样在写这篇文章时毫无头绪的人留下一个答案:)
这是对我有用的解决方案:在 app-description.xml 中从高分辨率中排除 iPad3

<requestedDisplayResolution excludeDevices="iPad3">high</requestedDisplayResolution>

希望它对您有用,就像对我有用一样;)

I hope, by this time, you already have found the answer for your question. But I'll leave here an answer for those whom got here without a clue like me and you when you wrote it :)
This is the solution that worked for me: Exclude the iPad3 from high resolution in the app-description.xml

<requestedDisplayResolution excludeDevices="iPad3">high</requestedDisplayResolution>

Hope it works for you as the same it worked for me ;)

花伊自在美 2025-01-03 07:20:44

你不知道。您没有理由想要降低 iPod Touch 用户的体验。如果您的意思是在旧版本的设备和新版本的设备之间(如非视网膜和视网膜),设备/应用程序会为您完成此操作。除 OpenGL 应用程序外,无需手动切换显示分辨率。这是一个完全不同的野兽……

话虽这么说,如果您的显示器降级有一些基本的、迫切的需要,请详细解释一下。如果这对应用程序的功能至关重要,苹果可能会允许。但是,如果只是针对 Lite 版本/类似的东西,他们很可能会拒绝该应用程序。

You don't. There's no reason why you would want to degrade the experience for iPod Touch users. If you mean between older versions of the devices and newer (as in non-Retina and Retina), the device/app does it for you. There's no need to manually switch display resolutions except for OpenGL apps. And that's a totally different beast…

That being said, if there's some essential, compelling need for your display degradation, explain it more. If it's essential to the functioning of the app, Apple will probably allow it. However, if it is solely for a Lite version/something like that, it's likely they'll reject the app.

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