简体   繁体   中英

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

To specify the icons for your app, add the CFBundleIcons key to your app's Info.plist file. 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. 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).

You'll need the PNGs in the proper size, though. You can find information about sizes at the following link: 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:

navBarBackground.png <- Normal screen

navBarBackground@2x.png <- Retina screen

Edit: This way, your application will automatically use the proper image file with the proper screen.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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