iPhone / iPad和iTunesArtwork [英] iPhone/iPad and iTunesArtwork

查看:126
本文介绍了iPhone / iPad和iTunesArtwork的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序包中包含文件iTunesArtwork,但我有一个iPad和iPhone版本的应用程序。 iPad版的图标上面有HD字母。我应该如何继续在项目中包含两个版本并告诉Xcode包含一个图像或另一个图像,以便将正确的图像复制到每个包中。

I would like to include the file iTunesArtwork in my app bundle but I have an iPad and iPhone version of the app. The iPad version's icon has the letters HD over it. How should I proceed to include both versions on the project and tell Xcode to include one image or the other, so the correct image is copied to each bundle.

谢谢。

推荐答案

好的。首先,你应该有4个不同的文件:

OK. First of all, you should have 4 different files:


  • Icon.png(57x57)

  • Icon@2x.png(114x114)

  • Icon-72.png(72x72)

  • iTunesArtwork(512x512)

  • Icon.png (57x57)
  • Icon@2x.png (114x114)
  • Icon-72.png (72x72)
  • iTunesArtwork (512x512)

如果您的应用是通用的,前三个应该包含在应用包中,只要您的Info.plist正确创建,一切都会自行处理。如果该应用程序不是通用的,那么将所有三个应用程序包括在内并没有什么坏处。

If your app is universal, the first three should be included in the app bundle, and everything will take care of itself as long as your Info.plist is created properly. If the app isn't universal, there's still no harm in including all three in the bundle.

在任何一种情况下,您都不需要在应用程序中包含iTunesArtwork捆绑,如果您要提交到App Store。您提交了512x512图标以及您的应用程序,它将自动包含在您的捆绑包中。

In either case, you don't need to include iTunesArtwork in your app bundle if you're submitting to the App Store. You submit your 512x512 icon along with your app, and it will automatically be included in your bundle.

对于Ad Hoc版本,包括iTunesArtwork是完全可选的。如果要为两个不同的目标包含不同的iTunesArtwork文件,可以将这两个文件放在不同的文件夹中,其中一个在第一个目标中,另一个在第二个目标中。

For Ad Hoc builds, including iTunesArtwork is entirely optional. If you want to include different iTunesArtwork files for two different targets, you can place the two files in different folders and include one in the first target, and the other one in the second.

这篇关于iPhone / iPad和iTunesArtwork的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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