简体   繁体   English

如何命名通用应用程序的iOS启动图标?

[英]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.

相关问题 iOS通用应用程序,启动图像 - iOS universal app which launch image 在iOS Universal app中启动屏幕故事板约束 - Launch screen storyboard constraints in iOS Universal app 如何在同一个应用程序中支持IOS6和IOS7应用程序图标并启动图像? - How to support IOS6 and IOS7 app icons and launch images in the same app? 如何为通用iPhone / iPad应用程序指定图标? - How to specify icons for a universal iPhone/iPad app? 如何在iOS中为通用应用创建通用情节提要? - How to create a universal storyboard for universal app in iOS? iOS:通过通用链接启动应用程序导致应用程序崩溃 - iOS: Launch App via universal link makes app crash 在iOS应用中添加应用图标和启动图像的最佳方法是什么? - What is the Best way of adding App icons and Launch image in iOS app? 如何更新应用程序图标并启动图像以同时支持IOS 6和7? - How do you update the app icons and launch images to support IOS 6 and 7 simultaneously? iOS 7应用程序图标,启动iOS 6图标时启动图像和命名约定 - iOS 7 App Icons, Launch images And Naming Convention While Keeping iOS 6 Icons 如何在iOS的通用应用程序中定义启动屏幕故事板图像大小? - How to define launch screen storyboard image size in universal application in iOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM