简体   繁体   English

iPhone Ipad Dual App无法确定如何为Dual App指定2个图标

[英]IPhone Ipad Dual app Cannot figure out how to specify 2 icons for a dual app

I am writing my first dual app and cannot figure out how to give tell it about the 2 icons to use I read the following documentation 我正在编写我的第一个双重应用程序,但无法弄清楚如何使用2个图标告诉我,请阅读以下文档

To specify the icons for your app, add the CFBundleIcons key to your app's Info.plist file. 要为您的应用程序指定图标,请将CFBundleIcons键添加到应用程序的Info.plist文件中。 The contents of that key include a list of filenames intended for use as the primary app icons. 该密钥的内容包括打算用作主要应用程序图标的文件名列表。 The filenames can be anything you want, but all image files must be in the PNG format and reside in the top level of your app bundle. 文件名可以是您想要的任何名称,但是所有图像文件必须为PNG格式,并且位于应用程序包的顶层。 When the system needs an appropriately sized icon, it uses the information in the key to choose the image file whose size most closely matches the intended usage. 当系统需要适当大小的图标时,它将使用键中的信息来选择大小与预期用途最接近的图像文件。

I cannot figure out how to do this. 我不知道该怎么做。

As Dan mentioned, you only need to drag and drop your images into the proper boxes (iPhone icon box, iPhone Retina icon box, etc). 正如Dan所提到的,您只需要将图像拖放到适当的框(iPhone图标框,iPhone Retina图标框等)中。

You'll need the PNGs in the proper size, though. 不过,您将需要适当大小的PNG。 You can find information about sizes at the following link: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html 您可以在以下链接中找到有关尺寸的信息: http : //developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html

Also if you are using images for your elements (UIButton, UINavigationBar, etc), it's a good practice to name *@2x.png your retina display artwork, like: 另外,如果您正在使用图像作为元素(UIButton,UINavigationBar等),则将*@2x.png命名为视网膜显示图稿是一个好习惯,例如:

navBarBackground.png <- Normal screen navBarBackground.png <-正常屏幕

navBarBackground@2x.png <- Retina screen navBarBackground@2x.png <-视网膜屏幕

Edit: This way, your application will automatically use the proper image file with the proper screen. 编辑:这样,您的应用程序将在适当的屏幕上自动使用适当的图像文件。

如果您使用的是Xcode 4+,则只需在项目导航器顶部单击项目文件,然后选择要构建的目标,然后将图标文件拖放到以下位置的相应框中即可:摘要视图

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

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