图标已经包含光泽效果

发布于 2024-11-28 20:18:30 字数 139 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

谁的年少不轻狂 2024-12-05 20:18:30

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.

魔法少女 2024-12-05 20:18:30

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

在此处输入图像描述

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

在此处输入图像描述

它对我有用!

提前欢迎!

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

enter image description here

after try project Target settings tick the checkbox in the summary tap in the App Icons section
like below screen shot:

enter image description here

it's worked for me!

Welcome in Advance!

濫情▎り 2024-12-05 20:18:30

看来这个问题在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.

溺渁∝ 2024-12-05 20:18:30

Info.plist 中有 2 个键来管理此操作。

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>

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

<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 = true and you are good to go (this is NOT the other UIPrerenderedIcon that also exists in this file as a boolean key!).

提赋 2024-12-05 20:18:30

以防万一有人由于在 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:

Attributes inspector

绝影如岚 2024-12-05 20:18:30

你们中的一些人会做这些事情,但仍然没有视网膜显示或光泽来反映这些变化。

在 XCode 4.3.2 和可能更早的版本中,请确保选中项目设置中的“Summary”选项卡。在那里你会发现一个名为“应用程序图标”的部分,它应该显示你的 Icon.png 和 [电子邮件受保护]确保选中“预渲染图标”框

即使完成所有这些,您的视网膜显示屏也可能无法正常工作。 检查“信息”选项卡的“自定义 iOS 目标属性”部分。

您可能会在此处找到您的 plist 尚未更新您的图标文件

如果您不打算使用“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.

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

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.

淡写薰衣草的香 2024-12-05 20:18:30

在 iOS5 Beta 6 的发行说明中写道:

已修复:UIPrerenderedIcon 键(在 Info.plist 文件中)不是
在此测试版中获得荣誉。

In the release notes for iOS5 Beta 6 it says:

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

时光礼记 2024-12-05 20:18:30

是的,这是 iOS 5 的一个错误。我相信GM会修复这个问题。

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

层林尽染 2024-12-05 20:18:30

我在使用 xCode 5.0 时遇到了同样的问题,出现了不需要的光泽效果。我浏览了所有发布的答案。以下是对我有用的方法:

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

操作方法如下:
在导航器中单击您的项目名称(左栏)>然后在编辑器(中间列)中单击信息。在标有“图标包括光泽效果”的字段中,单击减号“-”按钮进行删除。这会删除不起作用的代码,因此您将从一个干净的调色板开始。

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

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>

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

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

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

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

这是我可以提供的最佳答案。为我工作。

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:

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

无风消散 2024-12-05 20:18:30

对我有用的是首先将“图标文件(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.

入怼 2024-12-05 20:18:30

我设置“图标已经包含光泽效果=是”
在 info.plist 中,搜索这部分:

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

现在,添加这两行:

       <key>UIPrerenderedIcon</key>
       <false/>

最后,它必须是:

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

I set “Icon already includes gloss effects = YES”
In the info.plist, search this part:

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

Now, add this 2 lines:

       <key>UIPrerenderedIcon</key>
       <false/>

At the end, It must to be:

<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>myIcon.png</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <true/>
    </dict>
</dict>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文