iOS 应用提交,图片尺寸无效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18523193/
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
iOS App Submission, Invalid Image Sizes
提问by user2096580
I just received the following message with my iOS app submission:
我刚刚在 iOS 应用程序提交中收到以下消息:
Invalid Image - For iOS applications, icons included in the binary submission must be in the PNG format.
-If your application supports the iPhone device family, you must include square icons of the following dimensions: 57x57 pixels and 120x120 pixels.
-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 应用程序,二进制提交中包含的图标必须为 PNG 格式。
- 如果您的应用程序支持 iPhone 设备系列,则必须包含以下尺寸的方形图标:57x57 像素和 120x120 像素。
- 如果您的应用程序支持 iPad 设备系列,则必须包含以下尺寸的方形图标:72x72 像素、76x76 像素和 152x152 像素
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 所需的新图像大小。有谁知道 3 个 iPad 图像的命名约定是什么?是否有必要仍然包括旧的图像尺寸,114x114 和 144x144?
Thanks!
谢谢!
采纳答案by Steph Sharp
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 有新的图标大小。请参阅这篇文章:iOS 7 应用程序图标的新指标。它解释了(在文章底部附近)iPhone 和 iPad 所需的尺寸:
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!
如果您只想针对 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 和设置图标!
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.
就命名约定而言,您可以为图标命名任何您想要的名称,只要它们的大小正确(并且高分辨率图像使用@2x 后缀)。只需确保在 Info.plist 文件中,使用CFBundleIconFiles
键声明图标的名称即可。
This similar questionon SO might also be of use to you.
SO上的这个类似问题也可能对您有用。
EDIT 1:As per comment below, see here for more info:
编辑 1:根据下面的评论,请参阅此处了解更多信息:
- iOS 7 Design Resources > iOS Human Interface Guidelines > Icon and Image Design > App Icon
- iOS App Programming Guide > App-Related Resources > App Icons
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:
编辑 2:如果您使用的是 Xcode 5,请选择目标,然后选择“常规”选项卡,您可以在“应用程序图标”部分看到所需图标的尺寸。请参阅有关资产目录的 Apple doco (特别是请参阅本节),其中显示了此屏幕截图:
回答by utsav.swaroop
New icon image sizes that will be required for iOS 7, naming conventions are mentioned below.
iOS 7 所需的新图标图像大小,命名约定如下所述。
For iPhone "appicon-60.png, [email protected]"
对于 iPhone "appicon-60.png, [email protected]"
For iPad "appicon-76.png, [email protected]"
对于 iPad "appicon-76.png, [email protected]"
Spotlight search results icon for all devices "appicon-Small-40.png, [email protected]"
所有设备的 Spotlight 搜索结果图标“appicon-Small-40.png、[email protected]”
回答by Alfie Hanssen
The Xcode GUI for specifying icons gives a concise overview of what icon sizes are supported (see below). Required icons will depend on the device(s) you choose to support.
用于指定图标的 Xcode GUI 简要概述了支持的图标大小(见下文)。所需图标取决于您选择支持的设备。
Icon filename can be of your choosing as long as the dimensions are correct and you let Xcode know about the icon file via the GUI pictured or via the Info.plist.
只要尺寸正确,您就可以选择图标文件名,并且您可以通过图示的 GUI 或 Info.plist 让 Xcode 了解图标文件。
回答by bpolat
What Apple mentioned in mail "Your delivery was successful, but you may wish to correct the following issues in your next delivery:"
苹果在邮件中提到的“您的交付成功,但您可能希望在下次交付时更正以下问题:”
This means this is not the a reason they will reject but they would like it to be corrected in next delivery.
这意味着这不是他们拒绝的原因,但他们希望在下次交付时得到纠正。
回答by Dharmbir Singh
You need to give app icon size for iPhone in ios 7 is 60*60 for non retina and 120*120 for retina display. And you need to remeber the naming convention in ios7. And for more info see in this image...
您需要在 ios 7 中为 iPhone 提供应用程序图标大小,非视网膜为 60*60,视网膜显示为 120*120。并且你需要记住ios7中的命名约定。有关更多信息,请参见此图片...
And for more info see this link
有关更多信息,请参阅此链接
回答by Ramis
The easiest way would be to use AppIcon set. Here is online tool, Icons Master, which will create AppIcon.appiconset folder and it takes care size and naming convection for the icons.
最简单的方法是使用 AppIcon 集。这是在线工具Icons Master,它将创建 AppIcon.appiconset 文件夹,并负责图标的大小和命名对流。
回答by Nagaraj
In Images.xcassetsif you give the images with proper sizes XCode never throws any warning of any error, Make sure that the size of the images is proper.
在Images.xcassets 中,如果你给图像提供了合适的尺寸 XCode 永远不会抛出任何错误警告,确保图像的尺寸是合适的。
Possibilities of throwing warning/error
抛出警告/错误的可能性
- If you miss any of the images even if you miss single image it throws warning.
- If the size of the image does not match with the required size.
- 如果您错过了任何图像,即使您错过了单个图像,它也会发出警告。
- 如果图片的尺寸与要求的尺寸不匹配。