ios Icon 已经包含光泽效果

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6972650/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:00:15  来源:igfitidea点击:

Icon already includes gloss effects

iosios5icons

提问by ruiaureliano

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

我在 iOS 5 beta 5 的应用程序图标中的光泽效果有问题,在 iOS 4 中它显示效果不是光泽,但 iOS5 显示光泽效果。我把选项Icon already includes gloss effects = YES,但根本不起作用,看来应用程序Google+也有同样的问题

回答by adjwilli

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.

iOS 5 在 Info.plist 文件中有一个新的“图标文件(iOS 5)”键。确保该字典中的“图标已经包含光泽效果”布尔值也设置为“是”。在更改在模拟器中生效之前,您可能需要清除构建文件夹。让它在旧项目上工作需要大量的故障排除,所以你可以尝试擦除根级别的密钥。

回答by Dinesh

First Settings in a your project info-list set key Icon already inculdes gloss effectsto YES Boolean value like below screen shot:

项目信息列表中的第一个设置设置键图标已经包含光泽效果到 YES 布尔值,如下面的屏幕截图:

enter image description here

在此处输入图片说明

after try project Target settings tick the checkboxin the summarytap in the App Iconssection like below screen shot:

在尝试项目目标设置后,在应用图标部分的摘要点击中勾选复选框,如下面的屏幕截图:

enter image description here

在此处输入图片说明

it's worked for me!

它对我有用!

Welcome in Advance!

欢迎提前!

回答by charunoki7

It appears this problem is still not fixed in the GM. I set UIPrerenderedIcon to YES, but the rendered icon includes gloss effect.

看来这个问题在 GM 中仍然没有解决。我将 UIPrerenderedIcon 设置为 YES,但渲染的图标包括光泽效果。



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.

抱歉,我确认这个问题已经在GM中解决了。如果您想消除粗略效果,请将“图标文件(iOS 5)”下“主要图标”下的“图标已包含粗略效果”设置为“是”。

回答by ZPiDER

There are 2 keys in the Info.plist governing this.

Info.plist 中有 2 个键来管理这个。

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).

xCode 为您生成了以下代码,但它不提供用于更改此代码的 GUI:打开您的 Info.plist 文件(右键单击 > 打开为 > 源代码)。

<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>myIcon.png</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <false/>
    </dict>
</dict>

set the UIPrerenderedIcon = trueand you are good to go (this is NOT the other UIPrerenderedIconthat also exists in this file as a boolean key!).

设置UIPrerenderedIcon = true好你就可以开始了(这不是另一个UIPrerenderedIcon也作为布尔键存在于这个文件中的!)。

回答by Ian L

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 5.0 中使用资产目录时出现问题而偶然发现此问题,资产目录的属性检查器中有一个应该检查的设置:

Attributes inspector

属性检查器

回答by whyoz

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.

在 XCode 4.3.2 和可能的更早版本中,请确保选中项目设置中的“摘要”选项卡。在那里你会找到一个名为“应用程序图标”的部分,它应该显示你的 Icon.png 和 [email protected]确保您已选中“预渲染图标”框

Even after all this, you might not have the retina display working. Check the "Info" tab's "Custom iOS Target Properties" section.

即使在这一切之后,您也可能无法让视网膜显示器正常工作。 检查“信息”选项卡的“自定义 iOS 目标属性”部分。

This is where you may find that your plist hasn't updated your Icon files

在这里你可能会发现你的 plist 没有更新你的图标文件

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.

如果您不打算使用它们,请确保删除“Newstand Icons”部分,否则它会阻止您的应用在提交到 AppStore 时通过验证。

回答by fredrik

In the release notes for iOS5 Beta 6 it says:

在 iOS5 Beta 6 的发行说明中,它说:

FIXED: The UIPrerenderedIcon key (in the Info.plist file) is not honored in this beta.

修正:UIPrerenderedIcon 键(在 Info.plist 文件中)在此测试版中不可用。

回答by Garrett

Yes, it's an iOS 5 bug. I'm sure it'll be fixed in the GM.

是的,这是一个 iOS 5 错误。我相信它会在 GM 中修复。

回答by TheGrayVacuum

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:

我在使用 xCode 5.0 时遇到了与不需要的光泽效果相同的问题。我浏览了所有发布的答案。这是对我有用的:

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.

1) 从 Info.plist 中删除“图标已经包含光泽效果”。我这样做是因为,虽然它被设置为“是”,但它应该可以正常工作——无论出于何种原因,它都不起作用,所以我想在添加正确的代码之前将其删除。

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).

2) 打开您的 Info.plist 文件——在导航器(左列)中,找到 info.plist 文件,然后(右键单击 > 打开为 > 源代码)。

3) Your code will look like this:

3)您的代码将如下所示:

    <key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>Icon-120</string>
            <string>Icon-72</string>
            <string>Icon-57</string>
        </array>
    </dict>

Now copy the following 2 lines of code, because you will paste them into the code above:

现在复制以下两行代码,因为您会将它们粘贴到上面的代码中:

     <key>UIPrerenderedIcon</key>
        <true/>

Your final code should look like this:

您的最终代码应如下所示:

    <dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>YourIconFile</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <true/>
    </dict>

This is the best answer I can provide. Worked for me.

这是我能提供的最好的答案。为我工作。

回答by RawMean

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.

对我有用的是首先将“图标文件(iOS 5)”下的“图标已经包含光泽效果”布尔值更改为否,编译,然后将布尔值设置为是并编译。