图标已经包含光泽效果
我在 iOS 5 beta 5 中遇到应用程序图标光泽效果的问题,在 iOS 4 中它显示效果而不是光泽,但 iOS5 显示光泽效果。我设置了选项图标已经包含光泽效果= YES
,但根本不起作用,而且Google+应用程序似乎也有同样的问题
I have a problem with the gloss effect in app icon at iOS 5 beta 5, in iOS 4 it's show the effect not gloss, but iOS5 shows the gloss effect. I put the option Icon already includes gloss effects = YES
, but simply does not work, and it appears that the application Google+ also has the same problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
iOS 5 在 Info.plist 文件中有一个新的“Icon Files (iOS 5)”键。确保该字典中的“图标已经包含光泽效果”布尔值也设置为“YES”。在更改在模拟器中生效之前,您可能需要清除构建文件夹。需要进行大量的故障排除才能使其在较旧的项目上工作,因此您可以尝试删除根级别密钥。
iOS 5 has anew "Icon Files (iOS 5)" key in the Info.plist file. Make sure the "Icon already includes gloss effect" boolean in that dict is set to "YES" too. You may need to clear your build folder before the changes take effect in the simulator. It takes a lot of troubleshooting to get it to work on older projects, so you might try erasing the root level key.
项目信息列表中的第一个设置将键 图标已包含光泽效果 设置为 YES 布尔值,如下屏幕截图:
尝试项目目标设置后,在应用程序图标部分的摘要点击中勾选复选框
就像下面的屏幕截图:
它对我有用!
提前欢迎!
First Settings in a your project info-list set key Icon already inculdes gloss effects to YES Boolean value like below screen shot:
after try project Target settings tick the checkbox in the summary tap in the App Icons section
like below screen shot:
it's worked for me!
Welcome in Advance!
看来这个问题在GM中还没有解决。
我将 UIPrenderedIcon 设置为 YES,但渲染的图标包含光泽效果。
抱歉,我确认这个问题已经在GM中解决了。如果您想删除总体效果,请将“图标文件(iOS 5)”下的“主图标”下的“图标已包含总体效果”设置为“是”。
It appears this problem is still not fixed in the GM.
I set UIPrerenderedIcon to YES, but the rendered icon includes gloss effect.
Sorry, I confirmed that this problem is solved in the GM. If you would like to erase gross effect, set "Icon already includes gross effect" under "Primary Icons" under "Icon files (iOS 5)" to YES.
Info.plist 中有 2 个键来管理此操作。
xCode 为您生成了以下代码,但它不提供用于更改此代码的 GUI:
打开 Info.plist 文件(右键单击 > 打开为 > 源代码)。
设置
UIPrerenderedIcon = true
就可以了(这不是此文件中也作为布尔键存在的另一个UIPrerenderedIcon
!)。There are 2 keys in the Info.plist governing this.
xCode generated the following code for you, but it doesn't offer a GUI for changing this:
Open your Info.plist file (Right Click > Open As > Source Code).
set the
UIPrerenderedIcon = true
and you are good to go (this is NOT the otherUIPrerenderedIcon
that also exists in this file as a boolean key!).以防万一有人由于在 Xcode 5.0 中使用资产目录出现问题而偶然发现此问题,应检查资产目录的属性检查器中的一个设置:
Just in case anyone stumbles across this due to a problem using an asset catalog in Xcode 5.0, there is a setting in the Attributes Inspector of the asset catalog that should be checked:
你们中的一些人会做这些事情,但仍然没有视网膜显示或光泽来反映这些变化。
在 XCode 4.3.2 和可能更早的版本中,请确保选中项目设置中的“Summary”选项卡。在那里你会发现一个名为“应用程序图标”的部分,它应该显示你的 Icon.png 和 [电子邮件受保护]。 确保选中“预渲染图标”框。
即使完成所有这些,您的视网膜显示屏也可能无法正常工作。 检查“信息”选项卡的“自定义 iOS 目标属性”部分。
如果您不打算使用“Newstand 图标”部分,请确保删除它们,否则它会阻止您的应用程序在提交到 AppStore 时通过验证。
Some of you will do these things and still not have retina display or gloss to reflect these changes.
In XCode 4.3.2 and possibly earlier versions, make sure you check the "Summary" tab in your project settings. There you will find a section called "App Icons" that should show both your Icon.png and [email protected]. Make sure you have the "Prerendered Icon" box checked.
Even after all this, you might not have the retina display working. Check the "Info" tab's "Custom iOS Target Properties" section.
Make sure you delete the "Newstand Icons" section if you aren't going to use them or it will stop your app from passing validation when submitting to the AppStore.
在 iOS5 Beta 6 的发行说明中写道:
In the release notes for iOS5 Beta 6 it says:
是的,这是 iOS 5 的一个错误。我相信GM会修复这个问题。
Yes, it's an iOS 5 bug. I'm sure it'll be fixed in the GM.
我在使用 xCode 5.0 时遇到了同样的问题,出现了不需要的光泽效果。我浏览了所有发布的答案。以下是对我有用的方法:
1)从 Info.plist 中删除“图标已包含光泽效果”。我这样做是因为,虽然它设置为“YES”,但它应该可以正常工作——无论出于何种原因,它都不起作用,所以我想在添加正确的代码之前将其删除。
操作方法如下:
在导航器中单击您的项目名称(左栏)>然后在编辑器(中间列)中单击信息。在标有“图标包括光泽效果”的字段中,单击减号“-”按钮进行删除。这会删除不起作用的代码,因此您将从一个干净的调色板开始。
2) 打开 Info.plist 文件 - 在导航器(左列)中,找到 info.plist 文件(右键单击 > 打开为 > 源代码)。
3)您的代码将如下所示:
现在复制以下两行代码,因为您将把它们粘贴到上面的代码中:
您的最终代码应如下所示:
这是我可以提供的最佳答案。为我工作。
I had the same problem with an unwanted gloss effect using xCode 5.0. I went through all posted answers. Here is what worked for me:
1) Remove "Icon Already Includes Gloss Effects" from Info.plist. I did this because, although this is set to "YES", which should work properly -- for whatever reason, it wasn't working, so I wanted to remove it before adding the correct code.
Here's how to do it:
Click your project name in the navigator (left column) > then in the Editor (middle column) click info. In the field that states "Icon Includes Gloss Effects", click the minus "-" button to delete. This removes the code that is not working, so you will start with a clean palette.
2) Open your Info.plist file -- In the Navigator (left column), find the info.plist file then (Right Click > Open As > Source Code).
3) Your code will look like this:
Now copy the following 2 lines of code, because you will paste them into the code above:
Your final code should look like this:
This is the best answer I can provide. Worked for me.
对我有用的是首先将“图标文件(iOS 5)”下的“图标已包含光泽效果”布尔值更改为“否”,编译,然后将布尔值设置为“是”并编译。
What worked for me is to change the "Icon already includes gloss effect" boolean under "Icon Files (iOS 5)" first to NO, compile, then set the boolean to YES and compile.
我设置“图标已经包含光泽效果=是”
在 info.plist 中,搜索这部分:
现在,添加这两行:
最后,它必须是:
I set “Icon already includes gloss effects = YES”
In the info.plist, search this part:
Now, add this 2 lines:
At the end, It must to be: