简体   繁体   English

Adobe Phonegap图标,无config.xml文件

[英]Adobe Phonegap Icons, no config.xml file

I've been using Adobe Phonegap's Build Website to package my iOS application, however my app icon appears to be stuck on the default icon given by PhoneGap which looks like this: 我一直在使用Adobe Phonegap的Build网站打包我的iOS应用程序,但是我的应用程序图标似乎卡在PhoneGap给定的默认图标上,如下所示:

在此处输入图片说明

I looked online for an answer and I came across this: http://docs.build.phonegap.com/en_US/2.9.0/configuring_icons_and_splash.md.html 我在网上寻找答案,并且遇到了这个问题: http : //docs.build.phonegap.com/en_US/2.9.0/configuring_icons_and_splash.md.html

Based on my findings, I have two questions: 根据我的发现,我有两个问题:

1) Would I need to create a separate app icon for each device or would a single image and a defined width and height in my code suffice? 1)我需要为每个设备创建一个单独的应用程序图标,还是单张图像以及代码中定义的宽度和高度就足够了?

2) Do I add the following lines directly to my index.html file without anything else? 2)是否将以下几行直接添加到我的index.html文件中,而不进行其他操作? The reason I am asking is because of the <icon src=" "> and gap:platform="ios" bit. 我要问的原因是因为<icon src=" ">gap:platform="ios"位。 Does the build created with Adobe Phonegap automatically allow me to do this or do I need to create a config.xml file and add those lines to that? 使用Adobe Phonegap创建的内部版本是否可以自动执行此操作,还是需要创建config.xml文件并将这些行添加到其中?

<!-- iPhone / iPod Touch  -->
<icon src="icon-60.png" gap:platform="ios" width="60" height="60" />
<icon src="icon-60@2x.png" gap:platform="ios" width="120" height="120" />
...

Rebuild a fresh app. 重建一个新的应用程序。

Make an icon of size 1024 x 1024. 制作大小为1024 x 1024的图标。

Go to this link https://makeappicon.com/ 转到此链接https://makeappicon.com/

Using this link you will be able to create all required icons for both iOS and Android. 使用此链接,您将能够为iOS和Android创建所有必需的图标。

Now go to your App folder. 现在转到您的App文件夹。

App folder > platforms > ios > app name > Resources > icons. 应用程序文件夹>平台> ios>应用程序名称>资源>图标。

replace all the icons with your new icons. 用新图标替换所有图标。

You can do the same for Splashscreen. 您可以对启动画面执行相同的操作。 It requires 2048 x 2048 image size. 它需要2048 x 2048的图像尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM