iOS应用程序提交,图像大小无效

iOS应用程序提交,图像大小无效

问题描述:

我刚刚收到以下消息,提交了我的iOS应用:

I just received the following message with my iOS app submission:


无效图片 - 对于iOS应用程序,二进制文件中包含的图标
提交必须采用PNG格式。

Invalid Image - For iOS applications, icons included in the binary submission must be in the PNG format.

- 如果您的应用程序支持iPhone设备系列,则必须包含以下尺寸的方形图标:57x57像素和
120x120像素。

-If your application supports the iPhone device family, you must include square icons of the following dimensions: 57x57 pixels and 120x120 pixels.

- 如果您的应用程序支持iPad设备系列,则必须包含以下尺寸的方形图标:72x72像素,76x76像素
和152x152像素

-If your application supports the iPad device family, you must include square icons of the following dimensions: 72x72 pixels, 76x76 pixels and 152x152 pixels

我认为这些是iOS 7所需的新图像尺寸。有谁知道3张iPad图像的命名约定是什么?是否仍然需要包括旧图像尺寸,114x114和144x144?

I assume that these are the new image sizes that will be required for iOS 7. Does anyone know what the naming convention will be for the 3 iPad images? And is it necessary to still include the old image sizes as well, 114x114 and 144x144?

谢谢!

是的,iOS 7有新的图标大小。请参阅此文章: iOS 7应用程序图标的新指标。它解释了(在文章底部附近)iPhone和iPad所需的尺寸:

Yes, there are new icon sizes for iOS 7. See this article: New Metrics for iOS 7 App Icons. It explains (near the bottom of the article) the sizes you need for iPhone and iPad:


如果你只想定位iOS 7,你只需要76 x 76,120 x 120和152 x 152图标大小。如果你想同时定位iOS 6,你需要57 x 57,72 x 72,76 x 76,114 x 114,120 x 120,144 x 144和152 x 152图标尺寸。如果你不想让操作系统插入它们,不用计算Spotlight和Settings图标!

If you want to target only iOS 7, you just need 76 x 76, 120 x 120 and 152 x 152 icon sizes. If you want to target also iOS 6, you’ll need 57 x 57, 72 x 72, 76 x 76, 114 x 114, 120 x 120, 144 x 144 and 152 x 152 icon sizes. Without counting Spotlight and Settings icon if you don’t want the OS to interpolate them!

就命名约定而言,你可以只要它们的大小正确(并且高分辨率图像使用@ 2x后缀),就可以将图标命名为您想要的任何内容。只需确保在Info.plist文件中,使用 CFBundleIconFiles 键声明图标的名称。

As far as naming convention goes, you can name the icons anything you want as long as they are the correct size (and that high-res images use the @2x suffix). Just make sure that in your Info.plist file, you declare the names of the icons using the CFBundleIconFiles key.

关于SO的这个类似的问题也可能对您有用。

This similar question on SO might also be of use to you.

编辑1:根据以下评论,请点击此处了解更多信息:

EDIT 1: As per comment below, see here for more info:

  • iOS 7 Design Resources > iOS Human Interface Guidelines > Icon and Image Design > App Icon
  • iOS App Programming Guide > App-Related Resources > App Icons

编辑2:如果您使用的是Xcode 5,请选择然后选择常规选项卡,您可以在应用程序图标部分中查看所需图标的尺寸。请参阅Apple doco关于资产目录(特别是见本节)它显示了这个截图:

EDIT 2: If you are using Xcode 5, select the target then select the General tab and you can see the dimensions of the required icons in the App Icons section. See the Apple doco about Asset Catalogs (in particular see this section) where it shows this screenshot: