首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在iPad OS 13.7上,Cordova iOS应用程序图标始终显示默认图标

在iPad OS 13.7上,Cordova iOS应用程序图标始终显示默认图标
EN

Stack Overflow用户
提问于 2020-09-22 18:29:29
回答 1查看 62关注 0票数 0

在iPad OS 13.7上,“打开应用程序视图”图标的正确大小/设置是什么?

在屏幕截图上,带圆圈的图标不能由带有Cordova v9.0.0的config.xml替换。

XCODE中的图标视图

config.xml

代码语言:javascript
复制
...

<platform name="ios">
        <preference name="Orientation" value="all" />
        <preference name="BackupWebStorage" value="none" />
        <icon height="88" src="res/ios/icon-88.png" width="88" />
        <icon height="48" src="res/ios/icon-48.png" width="48" />
        <icon height="55" src="res/ios/icon-55.png" width="55" />
        <icon height="196" src="res/ios/icon-98@2x.png" width="196" />
        <icon height="172" src="res/ios/icon-86@2x.png" width="172" />
        <icon height="1024" src="res/ios/icon-1024.png" width="1024" />
        <icon height="20" src="res/ios/icon-20.png" width="20" />
        <icon height="30" src="res/ios/icon-30.png" width="30" />
        <icon height="180" src="res/ios/icon-60@3x.png" width="180" />
        <icon height="60" src="res/ios/icon-60.png" width="60" />
        <icon height="120" src="res/ios/icon-60@2x.png" width="120" />
        <icon height="76" src="res/ios/icon-76.png" width="76" />
        <icon height="152" src="res/ios/icon-76@2x.png" width="152" />
        <icon height="167" src="res/ios/icon-83.5@2x.png" width="167" />
        <icon height="40" src="res/ios/icon-40.png" width="40" />
        <icon height="80" src="res/ios/icon-40@2x.png" width="80" />
        <icon height="57" src="res/ios/icon.png" width="57" />
        <icon height="114" src="res/ios/icon@2x.png" width="114" />
        <icon height="72" src="res/ios/icon-72.png" width="72" />
        <icon height="144" src="res/ios/icon-72@2x.png" width="144" />
        <icon height="29" src="res/ios/icon-small.png" width="29" />
        <icon height="58" src="res/ios/icon-small@2x.png" width="58" />
        <icon height="87" src="res/ios/icon-small@3x.png" width="87" />
        <icon height="50" src="res/ios/icon-50.png" width="50" />
        <icon height="100" src="res/ios/icon-50@2x.png" width="100" />
...

versions

代码语言:javascript
复制
"cordova": "^9.0.0"
"cordova-android": "^6.4.0"
"cordova-ios": "^6.1.0"
MACOS v10.15.4
Xcode v10.15.0

$ cordova build ios构建

EN

回答 1

Stack Overflow用户

发布于 2020-09-22 19:14:08

在我将app安装到另一台iOS设备上之后,上面的图标设置就起作用了。似乎之前安装的应用程序缓存了iPadOS 13.7上的图标。

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

https://stackoverflow.com/questions/64007852

复制
相关文章

相似问题

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