iOS 6 和 Xcode 5.0 的图标光泽

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

Icon gloss with iOS 6 & Xcode 5.0

iphoneiosxcode

提问by Richard Burton

I am really stuck on how to remove the gloss from my icon when using iOS6 and XCode 5.

在使用 iOS6 和 XCode 5 时,我真的很困惑如何从我的图标上去除光泽。

I have read through these questions:

我已经阅读了这些问题:

Removing gloss effect from an icon in iOS 4.3

在 iOS 4.3 中去除图标的光泽效果

icon already includes gloss effects not working ios 5

图标已包含光泽效果,无法在 ios 5 中使用

How to disable highlighting of the app icon?

如何禁用应用程序图标的突出显示?

And now my plist looks like this:

现在我的 plist 看起来像这样:

<plist version="1.0">
<dict>
    <key>LSApplicationCategoryType</key>
    <string></string>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIdentifier</key>
    <string>com.burton.${PRODUCT_NAME:rfc1034identifier}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIPrerenderedIcon</key>
    <true/>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
    </array>
</dict>
</plist>

However, the gloss effect is still being applied when I preview the app on my phone. Any help would be much-appreciated.

但是,当我在手机上预览该应用程序时,仍然会应用光泽效果。任何帮助将非常感激。

回答by dubemike

Actually they have moved the setting. Under your project settings, under the general tab,and under the app icons section, select the "Use Asset Catalog". Now under the project files (far left panel) navigate to the Images.xcassets file. Now make sure the app icon and launch images are added. The important thing is to make sure that the tick box of "Ios Icon is pre-rendered" is enabled.You can find this option on the attributes panel (far right panel) when viewing the Images.xcassets file. And thats it, you can delete the old images and do a clean , then build and run and you done. This worked for me... enter image description here

实际上他们已经移动了设置。在您的项目设置下,在常规选项卡下,在应用程序图标部分下,选择“使用资产目录”。现在在项目文件(最左侧面板)下导航到 Images.xcassets 文件。现在确保添加了应用程序图标和启动图像。重要的是确保启用“Ios Icon is pre-rendered”复选框。查看Images.xcassets文件时,您可以在属性面板(最右侧面板)上找到此选项。就是这样,您可以删除旧图像并进行清理,然后构建并运行,您就完成了。这对我有用... 在此处输入图片说明

回答by Richard Burton

After much poking around, it turns out this a bug with XCode 5 and the Media.xcassets folder that it uses to create the icon. I have submitted a bug report to Apple.

经过多次摸索,发现这是 XCode 5 和用于创建图标的 Media.xcassets 文件夹的错误。我已向 Apple 提交了错误报告。

回答by Zoltan Vinkler

After you set the "iOS icon is pre-rendered", you have to delete the app from the device and build-run again (in iOS 6.1).

设置“iOS 图标已预渲染”后,您必须从设备中删除该应用程序并再次构建运行(在 iOS 6.1 中)。