如何消除 XCode 5 / iOS 7 中的图标眩光?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18145485/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to remove icon glare in XCode 5 / iOS 7?
提问by Tom van Zummeren
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.
我正在使用 XCode 5 开发人员预览版来创建 iOS 7 应用程序。在 iOS 7 中,图标的眩光效果不再存在。没关系。但是现在,当我在 iOS 6 设备(或模拟器)上运行由 XCode 5 编译的应用程序时,我看到了图标上的眩光效果!禁用眩光的常用方法(编辑 App-Info.plist 文件)不再起作用。
So my question is: how can I disable the glare effect on iOS 6 in an app compiled by XCode 5?
所以我的问题是:如何在由 XCode 5 编译的应用程序中禁用 iOS 6 上的眩光效果?
Side note: I'm using the asset library to configure all the different icon sizes.
旁注:我正在使用资产库来配置所有不同的图标大小。
回答by Chris Chen
As the NDA has been lift, I can tell you the answer:
随着保密协议的解除,我可以告诉你答案:
- go to Images.xcassets in your Xcode 5 project
- look for AppIcon
- select iPhone App iOS 5,6 57pt
- in the Inspector side bar, tick/untick the "iOS icon is pre-rendered" checkbox as you wish!
- 转到 Xcode 5 项目中的 Images.xcassets
- 寻找 AppIcon
- 选择 iPhone App iOS 5,6 57pt
- 在 Inspector 侧栏中,根据需要勾选/取消勾选“iOS icon is pre-rendered”复选框!
回答by sag
Add to "Icon files (iOS 5)"->"Primary Icon" "Icon already includes gloss effects" Boolean YESin *-Info.plistfile of your project (XCode 5)..
添加到“图标文件(iOS 5)”->“主图标”“图标已经包含光泽效果”布尔值YES在您的项目(XCode 5)的* -Info.plist文件中。
回答by Bo A
(Note:this is based on Xcode 4 knowledge)
(注:这是基于Xcode 4的知识)
Tick the pre-rendered checkbox next to your app icons in your target settings.
勾选目标设置中应用图标旁边的预渲染复选框。
This will remove any effect added to the icon.
这将删除添加到图标的任何效果。