简体   繁体   English

Xcode 5为什么不让我为iPhone应用程序指定iPad图像? 那么iTunes Artwork图标呢?

[英]Why won't Xcode 5 let me specify iPad images for an iPhone app? And what about the iTunes Artwork icon?

Xcode 5 tries to be smart about what icons my app needs. Xcode 5试图了解我的应用程序需要哪些图标。

I have a non-universal iOS 7 app. 我有一个非通用的iOS 7应用程序。 Xcode only lets me specify icons for the iPhone, but none for iPad. Xcode只允许我指定iPhone的图标,但没有指定iPad的图标。 Previously you could still add iPad-specific icons so it looks better on iPad. 以前您仍然可以添加iPad特定的图标,以便在iPad上看起来更好。

Also Xcode doesn't list the 512x512 and 1024x1024 "iTunes Artwork" icons which are still a requirement according to iTunes Connect Developer Guide / iOS 7 HIG. 此外,Xcode没有列出512x512和1024x1024“iTunes Artwork”图标,这些图标仍然是iTunes Connect开发人员指南/ iOS 7 HIG的要求。

在此输入图像描述

在此输入图像描述

Like you can see in the above screenshots only 3 Xcode lets me specify only 3 icon files. 就像你在上面的截图中看到的只有3 Xcode让我只指定3个图标文件。

Where can I specify the big iTunes Artwork icon if not in the icons asset catalog? 如果不在图标资产目录中,我可以在哪里指定大的iTunes Artwork图标?

In your assets file (usually Images.xcassets / Assets.xcassets ) go to the Attributes inspector on the right sidebar. 在资产文件(通常为Images.xcassets / Assets.xcassets )中,转到右侧边栏上的“属性”检查器。 Make sure iPad is ticked: 确保iPad已勾选:

在此输入图像描述

In later versions of Xcode, instead ensure an iOS (not "None") is selected on the iPad dropdown: 在Xcode的更高版本中,确保在iPad下拉列表中选择iOS(不是“无”):

在此输入图像描述

You need to select the AppIcon inside the asset catalog and bring up the properties navigator. 您需要在资产目录中选择AppIcon并打开属性导航器。 In there you can add iPad assets for both iOS7 and pre-iOS7 and also specify whether the icons are pre-rendered or not. 在那里,您可以为iOS7和iOS7之前添加iPad资源,还可以指定图标是否预先渲染。

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

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