简体   繁体   English

由于即将发布的IOS7版本,应用程序提交,图标大小错误

[英]App submission, icon size error due to forthcoming IOS7 release

I submitted my app to Apple for the first time. 我第一次将我的应用程序提交给Apple。 The app is for iPad only and compiled for IOS6. 该应用仅适用于iPad,适用于IOS6。 I got this reply from the submission process : 我收到了提交过程中的回复:

Invalid Image - For iOS applications, icons included in the binary submission must be in the PNG format 无效图像 - 对于iOS应用程序,二进制提交中包含的图标必须为PNG格式

If your application supports the iPhone device family, you must include square icons of the following dimensions: 57x57 pixels and 120x120 pixels. 如果您的应用程序支持iPhone设备系列,则必须包含以下尺寸的方形图标:57x57像素和120x120像素。 If your application supports the iPad device family, you must include square icons of the following dimensions: 72x72 pixels, 76x76 pixels and 152x152 pixels 如果您的应用程序支持iPad设备系列,则必须包含以下尺寸的方形图标:72x72像素,76x76像素和152x152像素

I read this morning that this is quite new . 我今天早上读到这是一个很新的内容 I always have good chance when for my first attempts. 我第一次尝试时总是有很好的机会。

I only used png image files of 72x72, for exemple icon_72.png. 我只使用了72x72的png图像文件,例如icon_72.png。 I understand that when I include a retina file, its name becomes icon_72@2x.png But what about the other resolutions? 我明白,当我加入一个视网膜文件时,它的名字就变成icon_72@2x.png但是其他的分辨率呢? How should I name them or how can I manage this ? 我应该如何命名它们或如何管理它?

Apple mentioned in iOS 7 Human Interface Guidelines Apple在iOS 7人机界面指南中提到过

Create different sizes of the app icon for different devices. 为不同的设备创建不同大小的应用程序图标。 If you're creating a universal app, you need to supply app icons in all four sizes. 如果您要创建通用应用,则需要提供所有四种尺寸的应用图标。

For iPhone and iPod touch both of these sizes are required: 对于iPhone和iPod touch,这两种尺寸都是必需的:

120 x 120 pixels 60 x 60 pixels (standard resolution) 120 x 120像素60 x 60像素(标准分辨率)

For iPad, both of these sizes are required: 对于iPad,这两种尺寸都是必需的:

152 x 152 76 x 76 pixels (standard resolution) 152 x 152 76 x 76像素(标准分辨率)

You can name these icons anything you want as long as you use the CFBundleIcons key to declare the names and you add the @2x suffix to the names of all high-resolution icons. 只要您使用CFBundleIcons键声明名称并将@ 2x后缀添加到所有高分辨率图标的名称,就可以将这些图标命名为您想要的任何名称。 You can use custom names because iOS chooses an icon based on whether its size is appropriate for the intended usage. 您可以使用自定义名称,因为iOS会根据其大小是否适合预期用途来选择图标。

If you are a photoshop user, you can download a template here: http://appicontemplate.com 如果您是photoshop用户,可以在此处下载模板: http//appicontemplate.com

There are photoshop actions included, that will automatically export all the formats you need. 包含photoshop操作,将自动导出您需要的所有格式。

To be on the safe side, use both the iOS 6 and iOS 7 template and include all the resolutions, you have been asked for. 为了安全起见,请使用iOS 6和iOS 7模板并包含您所要求的所有分辨率。

Just to clarify what I did (with some delay, sorry) 只是为了澄清我的所作所为(有些延迟,抱歉)

As mentioned I added icon76.png icon76@2.png 如上所述,我添加了icon76.png icon76@2.png

and I modify the myapp-Info.plist adding the new icons in the "icon files" Array and it ended with : 我修改了myapp-Info.plist,在“icon files”数组中添加了新图标,结果为:

  • Item 0 icon72.png Item 0 icon72.png
  • Item 1 icon72@2.png 项目1 icon72@2.png
  • Item 2 icon76.png 第2项icon76.png
  • Item 3 icon76@2.png 项目3 icon76@2.png

I also had a small final issue with the png suffix that was capitalised : PNG 我还有一个小的最后一个问题,png后缀是大写的:PNG

So thank you guys : there's always good help here ! 谢谢你们:这里总有很好的帮助!

FKY FKY

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM