ios iOS8 图标大小和图标名称以及启动图像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26029440/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 02:48:03  来源:igfitidea点击:

iOS8 icons sizes and names for icons and launch image

iosiconsios8launchimage

提问by Mike Flynn

I am not finding a straight forward site with the iOS8 sizes and names for the app icons and launch image.

我没有找到一个直接的网站,其中包含应用程序图标和启动图像的 iOS8 大小和名称。

I have seen the iOS Human Interface Guidelinesbut they don't really tell you how to name them.

我看过iOS 人机界面指南,但它们并没有真正告诉您如何命名它们。

Can someone list them out specifically?

有人能具体列出来吗?

采纳答案by Razvan

As rmaddy mentioned since Xcode 5 you don't need to name your icons in any specific way. Use the App Icon Assetto add your icons.

正如 rmaddy 从 Xcode 5 开始提到的,您不需要以任何特定方式命名您的图标。使用App Icon Asset来添加您的图标。

Regarding the sizes for your icons, you'll also find them in your App Icon Asset Catalog, but for convenience here's a screenshot: enter image description hereenter image description here

关于图标的大小,您还可以在应用图标资产目录中找到它们,但为了方便起见,这里有一个屏幕截图: 在此处输入图片说明在此处输入图片说明

I also highly recommend using this icon template to create your icon because one: it provide an awesome psd file ready to edit and second: it provides actions to easily save every icon you need! Here it is: http://appicontemplate.com

我还强烈推荐使用这个图标模板来创建你的图标,因为一:它提供了一个很棒的 psd 文件准备编辑第二:它提供了轻松保存你需要的每个图标的操作!这是:http: //appicontemplate.com

回答by spren9er

Autogenerate all necessary icon and launch image files (iOS 7 and above) with the following scripts:

使用以下脚本自动生成所有必要的图标和启动图像文件(iOS 7 及更高版本):

http://github.com/spren9er/s9icongen

http://github.com/spren9er/s9icongen

http://github.com/spren9er/s9splashgen

http://github.com/spren9er/s9splashgen

When the script is executed all sizes and names will be displayed in the console, e.g. for launch images

执行脚本时,所有大小和名称都将显示在控制台中,例如用于启动图像

   320x480(2x) ->   640x960: Default@2x~iphone.png
   320x568(2x) ->  640x1136: Default-568h@2x~iphone.png
   375x667(2x) ->  750x1334: Default-667h@2x~iphone.png
   414x736(3x) -> 1242x2208: Default-736h@3x~iphone.png
  768x1024(1x) ->  768x1024: Default-Portrait~ipad.png
  1024x768(1x) ->  1024x768: Default-Landscape~ipad.png
  768x1024(2x) -> 1536x2048: Default-Portrait@2x~ipad.png
  1024x768(2x) -> 2048x1536: Default-Landscape@2x~ipad.png

回答by Matthias Sala

This here is handy if you would like to know what the different files are good for:

如果您想知道不同的文件有什么用,这很方便:

Also check stackoverflow's thread here: https://stackoverflow.com/a/27108377/4288147

还要在这里检查stackoverflow的线程:https: //stackoverflow.com/a/27108377/4288147

回答by Leszek Szary

You can use any name for icons as there is no requirement for any specific name. To get icons with proper sizes you can use following shell script to generate them without any additional tools:

您可以为图标使用任何名称,因为不需要任何特定名称。要获得适当大小的图标,您可以使用以下 shell 脚本生成它们,而无需任何其他工具:

FILE="largeicon.png"
# iTunes Artwork
sips --resampleWidth 1024 "${FILE}" --out "[email protected]"
sips --resampleWidth 512 "${FILE}" --out "iTunesArtwork.png"
# iPhone iOS 7, 8
sips --resampleWidth 58 "${FILE}" --out "[email protected]"
sips --resampleWidth 87 "${FILE}" --out "[email protected]"
sips --resampleWidth 80 "${FILE}" --out "[email protected]"
sips --resampleWidth 120 "${FILE}" --out "[email protected]"
sips --resampleWidth 120 "${FILE}" --out "[email protected]"
sips --resampleWidth 180 "${FILE}" --out "[email protected]"
# iPad iOS 7, 8
sips --resampleWidth 29 "${FILE}" --out "icon-ipad-29.png"
sips --resampleWidth 58 "${FILE}" --out "[email protected]"
sips --resampleWidth 40 "${FILE}" --out "icon-ipad-40.png"
sips --resampleWidth 80 "${FILE}" --out "[email protected]"
sips --resampleWidth 76 "${FILE}" --out "icon-ipad-76.png"
sips --resampleWidth 152 "${FILE}" --out "[email protected]"
# Apple Watch
sips --resampleWidth 48 "${FILE}" --out "[email protected]"
sips --resampleWidth 55 "${FILE}" --out "[email protected]"
sips --resampleWidth 58 "${FILE}" --out "[email protected]"
sips --resampleWidth 87 "${FILE}" --out "[email protected]"
sips --resampleWidth 80 "${FILE}" --out "[email protected]"
sips --resampleWidth 88 "${FILE}" --out "[email protected]"
sips --resampleWidth 172 "${FILE}" --out "[email protected]"
sips --resampleWidth 196 "${FILE}" --out "[email protected]"