iOS 应用提交,图片尺寸无效 [英] iOS App Submission, Invalid Image Sizes

查看:28
本文介绍了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 和设置图标!

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:

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

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:

这篇关于iOS 应用提交,图片尺寸无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆