首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用phonegap构建的iOS原生应用程序以较低的分辨率打开

使用phonegap构建的iOS原生应用程序以较低的分辨率打开
EN

Stack Overflow用户
提问于 2018-06-12 21:45:02
回答 1查看 129关注 0票数 0

当我在我的iPad Pro 12.9in浏览器中打开我的应用程序,同时在我的桌面上使用PhoneGap应用程序时,它会像应该的那样打开。但当我安装应用程序并打开它时,它以较低的分辨率打开。我看到这可能是因为较低的分辨率闪屏,但我为iPad pro设计了一个分辨率为2732x2048的新闪屏。

我是否应该更改config.xml文件中的某些内容?我已经尝试了很多,但仍然没有找到解决方案。

These are the imported splash images for iOS with their resolutions

This is how the app looks when installed (1)

This is how the app looks when installed (2)

This is how the app should look - like it is now in the browser (1)

This is how the app should look - like it is now in the browser (2)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-13 04:00:53

你把你的新闪屏添加到你的config.xml上了吗?

您需要在该文件中包含以下条目:

代码语言:javascript
复制
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <splash src="<your path>/Default@2x~universal~anyany.png" />
    <splash src="<your path>/Default@2x~universal~comany.png" />
    <splash src="<your path>/Default@2x~universal~comcom.png" />
    <splash src="<your path>/Default@3x~universal~anyany.png" />
    <splash src="<your path>/Default@3x~universal~anycom.png" />
    <splash src="<your path>/Default@3x~universal~comany.png" />
</platform>

在我的例子中,路径是<project>/res/ios

要使用这些工具,您至少需要CLI7.0.1或7.1.0才能面向iOS Phonegap版本4.4.0

其他信息:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50818792

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档