How to remove icon glare in XCode 5 / iOS 7?

2020-06-22 03:23发布

问题:

I am using XCode 5 developer preview to create an iOS 7 app. In iOS 7, the glare effect of an icon does not exist anymore. That's fine. But now, when I run an app compiled by XCode 5 on an iOS 6 device (or simulator) I see the glare effect on the icon! The usual ways of disabling glare (editing the App-Info.plist file) don't work anymore.

So my question is: how can I disable the glare effect on iOS 6 in an app compiled by XCode 5?

Side note: I'm using the asset library to configure all the different icon sizes.

回答1:

As the NDA has been lift, I can tell you the answer:

  1. go to Images.xcassets in your Xcode 5 project
  2. look for AppIcon
  3. select iPhone App iOS 5,6 57pt
  4. in the Inspector side bar, tick/untick the "iOS icon is pre-rendered" checkbox as you wish!



回答2:

Add to "Icon files (iOS 5)"->"Primary Icon" "Icon already includes gloss effects" Boolean YES in *-Info.plist file of your project (XCode 5)..



回答3:

(Note: this is based on Xcode 4 knowledge)

Tick the pre-rendered checkbox next to your app icons in your target settings.

This will remove any effect added to the icon.



标签: ios xcode xcode5