xcode iPhone 如何提交带有非光泽视网膜显示图标的应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8395702/
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
iPhone how to submit an app with a non-glossy retina display icon?
提问by Alex Stone
I noticed that all of my attempts at a retina display 114x114 application icon image automatically have a gradient shadow overlaid on top of them. My icon already has transparency over a black background, and the second gradient shadow makes the background look less black
我注意到我在视网膜显示 114x114 应用程序图标图像上的所有尝试都会自动在它们上面叠加一个渐变阴影。我的图标已经在黑色背景上具有透明度,第二个渐变阴影使背景看起来不那么黑
I noticed that quite a few apps have their icons appear "flat", having no shadow. Is there some flag that I can set in my project to request this semi-circular shadow effect to not be applied to the icon?
我注意到很多应用程序的图标都显示为“平面”,没有阴影。是否有一些标志可以在我的项目中设置以请求不将此半圆形阴影效果应用于图标?
Updated: Xcode 4.2 iOS 5.0 as deployment target. Only 1 deployment target. For some reason the suggested solutions do not seem to work. I have The property added to the target. I see the boolean of YES for both the raw UIPrerendered icon and the "icon already includes gloss effects". I've replaced the icon files and tried different icons. I've uninstalled the app from the development device and reinstalled it. I did a clean. The gloss effect is still there. What am I forgetting?
更新:Xcode 4.2 iOS 5.0 作为部署目标。只有 1 个部署目标。出于某种原因,建议的解决方案似乎不起作用。我已将 属性添加到目标。我看到原始 UIPrerendered 图标和“图标已经包含光泽效果”的布尔值是 YES。我已经替换了图标文件并尝试了不同的图标。我已经从开发设备上卸载了该应用程序并重新安装了它。我做了一个干净的。光泽效果还是有的。我忘记了什么?
Update 2: After 45 minutes of messing and losing my sanity, I noticed that there's another Dictionary in the Plist:
更新 2:经过 45 分钟的混乱和失去理智后,我注意到 Plist 中有另一个字典:
Icon files(iOS5). Within that is a Primary Icon Dictionary,
within that is another declarationof "Icon already includes gloss effect". That one is set to NO. Setting that one to YES removes gloss, and makes my icon look awesome :) My guess is that as I migrated the project to iOS5, that key was added
其中是“图标已经包含光泽效果”的另一个声明。那个设置为NO。将其设置为 YES 会消除光泽,并使我的图标看起来很棒:) 我的猜测是当我将项目迁移到 iOS5 时,添加了该键
PS. While on the topic of icons, I built an icon maker app for iPhonethat allows me to vary the intensity of the gloss effect, as well as include/exclude some icon elements from the gloss. I still have to tell xCode that my icon is "pre-rendered", but I control the gloss effect.
附注。在图标主题上,我为 iPhone构建了一个图标制作应用程序,它允许我改变光泽效果的强度,以及从光泽中包含/排除一些图标元素。我仍然必须告诉 xCode 我的图标是“预渲染的”,但我控制了光泽效果。
回答by Chris Wagner
In your Info.plist for your target add the following attribute.
在目标的 Info.plist 中添加以下属性。
回答by Alex Stone
After 45 minutes of messing and losing my sanity, I noticed that there's another Dictionary in the Plist:
经过 45 分钟的混乱和失去理智后,我注意到 Plist 中有另一个字典:
Icon files(iOS5). Within that is a Primary Icon Dictionary,
图标文件(iOS5)。其中有一个 Primary Icon Dictionary,
within that is another declaration of "Icon already includes gloss effect". That one is set to NO. Setting that one to YES removes gloss, and makes my icon look awesome :) My guess is that as I migrated the project to iOS5, that key was added
其中是“图标已经包含光泽效果”的另一个声明。那个设置为NO。将其设置为 YES 会消除光泽,并使我的图标看起来很棒:) 我的猜测是当我将项目迁移到 iOS5 时,添加了该键
回答by Arvind
Follow the Alex Stone answer and then you need do the below steps if you are using assests catalog to remove gloss effect
按照 Alex Stone 的回答,如果您使用资产目录去除光泽效果,则需要执行以下步骤
To remove the gloss:
去除光泽:
- Go to the project files navigator in Xcode.
- Click on the asset catalog file (Images.xcassets)
- Bring up the attributes panel (typically, the far right) when viewing the asset catalog
- Click the box labeled 'iOS icon is pre-rendered'
- 转到 Xcode 中的项目文件导航器。
- 单击资产目录文件 (Images.xcassets)
- 查看资产目录时调出属性面板(通常是最右侧)
- 单击标有“iOS 图标已预渲染”的框
Performing these steps adds the following toward the end of the file Contents.json inside the asset catalog folder:
执行这些步骤将以下内容添加到资产目录文件夹中的 Contents.json 文件的末尾:
"properties" : { "pre-rendered" : true }
“属性”:{“预渲染”:真}
回答by kurtanamo
on ios5 (and higher) just go on Targets-->Summary-->App Icons und check on "Prerendered" - glossy effect is then away
在 ios5(及更高版本)上,只需点击 Targets-->Summary-->App Icons 并检查“Prerendered” - 光泽效果就消失了
回答by futureelite7
Set the following flag in your info.plist to TRUE.
将 info.plist 中的以下标志设置为TRUE。
UIPrerenderedIcon (Icon already includes gloss effects)
If you don't have it, just add it to your info.plist
. Use "Show raw keys/values" to show the name of the attribute.
如果您没有它,只需将其添加到您的info.plist
. 使用“显示原始键/值”来显示属性的名称。
回答by B-Money
You need to go to the SUMMARY tabfor your project and check the "Prerendered" checkbox next to the icons themselves. Boom, Bob's your Uncle. So they say. Nudge nudge, wink, wink, know-what-I-mean ? See Screenshot
您需要转到项目的“概要”选项卡,然后选中图标本身旁边的“预渲染”复选框。砰,鲍勃是你的叔叔。所以他们说。轻推,眨眼,眨眼,知道我的意思吗?见截图