[英]How to name iOS launch icons for a universal app?
This may be a trivial question, but I can't seem to find a concise answer on how to appropriately name (and what dimensions to use) for the iOS launch icons? 这可能是一个琐碎的问题,但是我似乎找不到关于如何为iOS启动图标正确命名(以及使用什么尺寸)的简洁答案?
Note I am not using Xcode but rather am porting a LibGDX game over to iOS via RoboVM. 注意我不是使用Xcode,而是通过RoboVM将LibGDX游戏移植到iOS。 This is what my iOS /data/ folder looks like right now: 这是我的iOS / data /文件夹现在的样子:
I think I have all of the "Default" launch images set properly, but I'm not sure about the launch icons. 我认为我已经正确设置了所有“默认”启动图像,但是我不确定启动图标。 (All of this confusion is really coming from the fact that there is scarce info about the new iPhone 6 and 6 Plus.) (所有这些困惑实际上是由于关于新iPhone 6和6 Plus的信息很少而引起的。)
So basically, what launch icon files are wrong and/or are missing? 因此,基本上,哪些启动图标文件是错误的和/或丢失的?
Oh, also in my plist.xml file, this is what I have: 哦,也是在我的plist.xml文件中,这是我拥有的:
If I add more launch icon images, would I need to change anything here? 如果我添加更多启动图标图像,是否需要在此处进行任何更改?
(I'm new to iOS development if it isn't painfully obvious yet.) (如果不是很痛苦,我是iOS开发的新手。)
In my libGDX ios project, I have the following icons in my ios/resources
folder ( not in the data folder): 在我的libGDX ios项目中,我的ios/resources
文件夹( 而不是 data文件夹)中具有以下图标:
Icon-40.png Icon-40@2x.png Icon-60.png Icon-60@2x.png Icon-72.png Icon-72@2x.png Icon-76.png Icon-76@2x.png Icon-Small-50.png Icon-Small-50@2x.png Icon-Small.png Icon-Small@2x.png Icon.png Icon@2x.png
And then in my Info.plist.xml
file I have: 然后在我的Info.plist.xml
文件中,我有:
<key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>Icon</string> <string>Icon-40</string> <string>Icon-60</string> <string>Icon-72</string> <string>Icon-76</string> <string>Icon-Small</string> <string>Icon-Small-50</string> </array> <key>UIPrerenderedIcon</key> <true/> </dict> </dict>
This seems to work as desired. 这似乎按预期工作。 And, since I'm here and these also took a while to work out, here are the launch images, including the new iPhone 6 and 6+ which it seems are needed to allow native screen resolution support on those devices: 而且,由于我在这里,而且还花了一些时间来解决,因此这里是启动图像,包括新的iPhone 6和6+,看来需要在这些设备上支持本机屏幕分辨率:
Default-375w-667h@2x.png Default-414w-736h@3x.png Default-568h@2x.png Default-Landscape@2x~ipad.png Default-Landscape~ipad.png Default.png Default@2x.png Default@2x~ipad.png Default~ipad.png
As far as I can tell, there are no corresponding Plist entries needed for these. 据我所知,这些不需要任何相应的Plist条目。
Hope this helps! 希望这可以帮助!
See section "Icons for Universal Apps" of the following document: https://developer.apple.com/library/ios/qa/qa1686/_index.html 请参阅以下文档的“通用应用程序图标”部分: https : //developer.apple.com/library/ios/qa/qa1686/_index.html
They follow the format Icon-"size". 它们遵循图标-“大小”的格式。
There is now a dedicated wiki page to how to define your icon when you submit your app for iOS. 现在有一个专用的Wiki页面,介绍如何在为iOS提交应用程序时定义图标。
It´s available here: 在这里可用:
https://github.com/MobiVM/robovm/wiki/Howto-Create-an-Asset-Catalog-for-XCode-9-Appstore-Submission%3F https://github.com/MobiVM/robovm/wiki/Howto-Create-an-Asset-Catalog-for-XCode-9-Appstore-Submission%3F
Since xCode 9 you need to define an asset catalog 从xCode 9开始,您需要定义资产目录
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.