ios 新 iPad 的高分辨率/视网膜显示应用程序图标文件名

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9780134/
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-30 17:24:38  来源:igfitidea点击:

High resolution/retina display app icon file names for the new iPad

iosipadiconsretina-display

提问by Matt Elkins

Does anyone know the correct file names for high resolution app icons in iOS? I've only been able to find the following documentation on the Apple Developer site, which is unfortunately out of date - http://developer.apple.com/library/ios/#qa/qa1686/_index.html.

有谁知道 iOS 中高分辨率应用程序图标的正确文件名?我只能在 Apple Developer 网站上找到以下文档,但不幸的是它已经过时了 - http://developer.apple.com/library/ios/#qa/qa1686/_index.html

This is my best guess... although I'm fairly sure I'm wrong!

这是我最好的猜测……虽然我很确定我错了!

App - 144px x 144px - [email protected]  
Spotlight - 100px x 100px - [email protected]  
Settings - 58px x 58px - [email protected]

Any suggestions would be greatly appreciated!

任何建议将不胜感激!

回答by sch

Hereand hereis the right documentation. Basically, you add new icons with the suffix @2xand with double size as the documentation says:

这里这里是正确的文档。基本上,你添加新的图标,后缀@2x和双大小的文件

For apps that run on devices with Retina displays, two versions of each icon should be provided, with the second one being a high-resolution version of the original. The names of the two icons should be the same except for the inclusion of the string @2x in the filename of the high-resolution image.

对于在配备 Retina 显示屏的设备上运行的应用程序,应提供每个图标的两个版本,第二个是原始图标的高分辨率版本。除了在高分辨率图像的文件名中包含字符串@2x 之外,两个图标的名称应该相同。

回答by user1240409

One thing you need to know is that the dimension of retina images will be double to that of regular imagesand for retina you should be use naming conventionwith @2x

您需要知道的一件事是,视网膜图像的尺寸将是常规图像尺寸的两倍,对于视网膜,您应该使用@2x 的命名约定

example-iPhone app icon (for regular)icon.png (57*57) (for retina)[email protected](114*114)

示例-iPhone应用程序图标(常规)icon.png(57*57)(视网膜)[email protected](114*114)

iPad app icon size 72*72 (for regular) 144*144(for retina) and naming convention should be with @2x for retina. Hope this might be helpfull for you. Thanks

iPad 应用程序图标大小 72*72(常规)144*144(视网膜),命名约定应使用 @2x 表示视网膜。希望这可能是你有帮助。谢谢

回答by Stephen J

This is from the docs linked above. I am exporting SVG's and need a way to separate the icons by function, so I'm using the older name method. Use the chart like this, whatever's on the left, append .png. To do retina, double the numbers and do the usual. Apple didn't put the names with the images, and while this is not exhaustive, it should be enough for most uses. Double-check for future and I may have even messed up on current, so don't take this as a final word.

这是来自上面链接的文档。我正在导出 SVG 并且需要一种按功能分隔图标的方法,因此我使用的是旧名称方法。像这样使用图表,无论左边是什么,附加 .png。要做视网膜,把数字加倍,然后照常做。Apple 没有将名称与图像放在一起,虽然这并不详尽,但对于大多数用途来说应该足够了。仔细检查未来,我什至可能搞砸了当前,所以不要把它当作最后的话。

Universal apps need to append ~iphone or ~ipad to the end of the string for disambiguation to avoid collision. This is not required if nothing conflicts, it seems from the docs. Name (add .png to it) - base res width x height.

通用应用程序需要将 ~iphone 或 ~ipad 附加到字符串的末尾以消除歧义以避免冲突。如果没有任何冲突,这不是必需的,这似乎来自文档。名称(添加 .png 到它) - 基本分辨率宽度 x 高度。

Launch Images:
iPhone:
Default - 320x480
Default-568h - 640x1136 (only @2x, do not double this number)
iPad
Default - 768x1024 (portrait)
Default-Landscape - 1024x768 (multiple orientations supported in iPad, see document)

App Icon:
iPhone
Icon - 57x57
iPad
Icon-72 - 72x72

Search Result Icon (Spotlight)
Icon-Small - 29x29 (also used on all device Settings)
Icon-Small-50 - 50x50 (Search results on iPad)

iTunes Art
iTunesArtwork  - 512x512

From Docs Here

这里的文档

edit: The reason I posted this chart is for ease of use. Apple put the icon names far away from their resolution in that paper.

编辑:我发布此图表的原因是为了便于使用。苹果在那篇​​论文中将图标名称与他们的分辨率相去甚远。