iPhone 图标大小

发布于 2024-09-08 15:54:19 字数 317 浏览 2 评论 0原文

我正在为 iPhone 开发一个应用程序,以支持多种设备,iPhone 2-4。我遇到了应用程序图标的问题,因为它在 iPhone 4 模拟器中显示为像素化,因此准确地说,我使用了更高分辨率 (300 x 300) 的新图像。在模拟器上,iPhone 4 和 iPhone 设备模拟器的显示效果都很好。然而,当我将我的应用程序移植到 iPhone 3 实际设备时,图标根本没有显示,而是得到一个空白的白色图标。我还没有 iPhone 4,所以我无法判断物理设备上是否会发生同样的问题。

我不确定要使图标在 iPhone 4 及更早版本的设备上完美显示的最佳尺寸/dpi 是多少?如果可能的话,将不胜感激。

I am developing an application for iPhone to support multiple devices, iPhone 2-4. I had an issue with the app icon as it was shown pixelated in the iPhone 4 simulator so I have used a new image with higher resolution (300 x 300) to be precise. On the simulator its showing fine for both iPhone 4 and the iPhone device simulators. However, when I ported my app to an iPhone 3 actual device the icon did not show at all and instead I get a blank white icon. I don't have an iPhone 4 yet so I cant tell if the same issue will happen on the physical device.

I am not sure what is the best dimensions/dpi to use for an icon to display perfectly on an iPhone 4 and older devices? Would appreciate a help if possible..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

猫腻 2024-09-15 15:54:19

对于较旧的设备,请将 57x57 图标另存为 Icon.png。对于 iPhone 4,请将您的 114x114 图标另存为 [电子邮件受保护]。图像分辨率根本不重要;只有像素尺寸很重要。

还有其他尺寸可供选择,例如 Spotlight/Settings 图标和 iPad 图标。 库文档。

For older devices, save your 57x57 icon as Icon.png. For the iPhone 4, save your 114x114 icon as [email protected]. The image resolution doesn't matter at all; only the pixel dimensions matter.

There are other sizes to cater to, like Spotlight/Settings icons and iPad icons. There's a full list written up in the library documentation.

优雅的叶子 2024-09-15 15:54:19

近年来,随着 iOS 设备系列变得更加复杂,以下是当前的图标列表及其对每个平台的要求:

iOS 7+

iPhone 和 iPod touch

这两种尺寸都是必需的:

120px x 120px
60px x 60px (standard resolution)

iPad

这两种尺寸都是必需的:

152px x 152px
76px x 76px (standard resolution)

App Store

创建两种尺寸的应用程序图标的大版本,以便在所有设备上看起来都不错:

1024px x 1024px
512px x 512px (standard resolution)
//Be sure to name this version of your app icon iTunesArtwork@2x and iTunesArtwork, respectively.

Spotlight 搜索结果在 iPhone、iPod touch 和 iPad 上(推荐)

创建以下两种尺寸的图标:

80px x 80px
40px x 40px (standard resolution)

iPhone、iPod touch 和 iPad 上的设置(推荐 /wSB)

在以下两种尺寸:

58px x 58px
29px x 29px (standard resolution)

iOS 6.1-

仅限 iPhone

Image(px)   File Name          Used For                          Required Status

512x512     iTunesArtwork      Ad Hoc iTunes                     Optional
1024x1024   iTunesArtwork@2x   Ad Hoc iTunes HiRes               Optional
57x57       Icon.png           App Store and Home screen         Required
114x114     [email protected]        Home screen iPhone 4/5            Optional
72x72       Icon-72.png        Home screen (iPad compatibility)  Optional
29x29       Icon-Small.png     Spotlight and Settings            Optional
50x50       Icon-Small-50.png  Spotlight (iPad compatibility)    Recommended(/wSB)
58x58       [email protected]  Spotlight and Settings iPhone 4/5 Recommended(/wSB)

仅限 iPad

Image(px)   File Name          Used For                          Required Status

512x512     iTunesArtwork      Ad Hoc iTunes                     Optional
1024x1024   iTunesArtwork@2x   Ad Hoc iTunes HiRes               Optional
72x72       Icon-72.png        App Store and Home screen iPad    Required
144x144     [email protected]     App Store and Home screen HiRes   Optional
50x50       Icon-Small-50.png  Spotlight on iPad                 Optional
29x29       Icon-Small.png     Settings on iPad                  Recommended(/wSB)

通用应用程序

Image(px)   File Name          Used For                          Required Status

512x512     iTunesArtwork      Ad Hoc iTunes                     Optional
1024x1024   iTunesArtwork@2x   Ad Hoc iTunes HiRes               Optional
57x57       Icon.png           App Store and Home screen         Required
114x114     [email protected]        Home screen iPhone 4/5            Optional
72x72       Icon-72.png        App Store and Home screen iPad    Required
144x144     [email protected]     App Store and Home screen HiRes   Optional
29x29       Icon-Small.png     Spotlight and Settings            Optional
50x50       Icon-Small-50.png  Spotlight iPad                    Recommended(/wSB)
58x58       [email protected]  Spotlight and Settings iPhone 4/5 Recommended(/wSB)

*(/wSB) = 推荐,如果您有一个设置捆绑包,否则可选但推荐

As the iOS device range got a whole lot more complicated in recent years, here is a current list of icons and their requirements for each platform:

iOS 7+

iPhone and iPod touch

Both of these sizes are required:

120px x 120px
60px x 60px (standard resolution)

iPad

Both of these sizes are required:

152px x 152px
76px x 76px (standard resolution)

App Store

Create a large version of your app icon in two sizes so that it looks good on all devices:

1024px x 1024px
512px x 512px (standard resolution)
//Be sure to name this version of your app icon iTunesArtwork@2x and iTunesArtwork, respectively.

Spotlight search results on iPhone, iPod touch, and iPad (recommended)

Create an icon in the following two sizes:

80px x 80px
40px x 40px (standard resolution)

Settings on iPhone, iPod touch, and iPad (recommended /wSB)

Create an icon in the following two sizes:

58px x 58px
29px x 29px (standard resolution)

iOS 6.1-

iPhone Only

Image(px)   File Name          Used For                          Required Status

512x512     iTunesArtwork      Ad Hoc iTunes                     Optional
1024x1024   iTunesArtwork@2x   Ad Hoc iTunes HiRes               Optional
57x57       Icon.png           App Store and Home screen         Required
114x114     [email protected]        Home screen iPhone 4/5            Optional
72x72       Icon-72.png        Home screen (iPad compatibility)  Optional
29x29       Icon-Small.png     Spotlight and Settings            Optional
50x50       Icon-Small-50.png  Spotlight (iPad compatibility)    Recommended(/wSB)
58x58       [email protected]  Spotlight and Settings iPhone 4/5 Recommended(/wSB)

iPad only

Image(px)   File Name          Used For                          Required Status

512x512     iTunesArtwork      Ad Hoc iTunes                     Optional
1024x1024   iTunesArtwork@2x   Ad Hoc iTunes HiRes               Optional
72x72       Icon-72.png        App Store and Home screen iPad    Required
144x144     [email protected]     App Store and Home screen HiRes   Optional
50x50       Icon-Small-50.png  Spotlight on iPad                 Optional
29x29       Icon-Small.png     Settings on iPad                  Recommended(/wSB)

Universal Apps

Image(px)   File Name          Used For                          Required Status

512x512     iTunesArtwork      Ad Hoc iTunes                     Optional
1024x1024   iTunesArtwork@2x   Ad Hoc iTunes HiRes               Optional
57x57       Icon.png           App Store and Home screen         Required
114x114     [email protected]        Home screen iPhone 4/5            Optional
72x72       Icon-72.png        App Store and Home screen iPad    Required
144x144     [email protected]     App Store and Home screen HiRes   Optional
29x29       Icon-Small.png     Spotlight and Settings            Optional
50x50       Icon-Small-50.png  Spotlight iPad                    Recommended(/wSB)
58x58       [email protected]  Spotlight and Settings iPhone 4/5 Recommended(/wSB)

*(/wSB) = Recommended if you have a Settings bundle, otherwise optional but recommended

哆啦不做梦 2024-09-15 15:54:19

红色,

请遵循以下准则:http:// developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

我没有在 iOS4 模拟器上看到像素化问题,就像您使用最初为 iOS3+ 编写的应用程序所做的那样带有标准的 57x57 图标。

Red,

Please follow these guidelines: http://developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

I have not seen the pixelated issue on the iOS4 simulator like you did using an app that was originally written for iOS3+ with a standard 57x57 icon.

我三岁 2024-09-15 15:54:19

我已将所有正确命名、大小正确的图像放入 github 存储库中,因此不会造成混淆。

https://github.com/FattusMannus/iOS-Development-Image-Placeholders

只需将它们下载为 zip 文件,编辑它们并将它们复制到您的项目中

即可 AH

Ive put all the images named correctly at the correct size into a github repo, so there can be no confusion.

https://github.com/FattusMannus/iOS-Development-Image-Placeholders

Just download them as a zip, edit them and copy them into your project

AH

星星的轨迹 2024-09-15 15:54:19

您可以在 plist 中的“图标文件”下设置各种图标图像名称。

You can set the various icon image names in the plist, under "icon files".

垂暮老矣 2024-09-15 15:54:19

确保“Icon.png”和“[电子邮件受保护]”大写,否则应用程序存档将无法通过验证过程。

Make sure that "Icon.png" and "[email protected]" are capitalized or else the application archive will not pass the validation process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文