加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

报亭图标未在Xcode 5 iOS 6.1 SDK中显示

发布时间:2020-12-14 17:12:26 所属栏目:百科 来源:网络整理
导读:自从将 Xcode升级到v5并将启动和应用程序图标图像转换为图像资产目录后,我无法在iOS 6.1和iOS 7的报亭中看到我的应用程序的报亭图标.相反,我在其位置看到常规应用程序图标.我仍然在编译iOS SDK 6.1,因为iOS 7中的风格明显变化,我还没有深入测试. 也就是说,这
自从将 Xcode升级到v5并将启动和应用程序图标图像转换为图像资产目录后,我无法在iOS 6.1和iOS 7的报亭中看到我的应用程序的报亭图标.相反,我在其位置看到常规应用程序图标.我仍然在编译iOS SDK 6.1,因为iOS 7中的风格明显变化,我还没有深入测试.

也就是说,这是我在报亭图标上试过的图标,icon-newsstand.png:

>将icon-newsstand.png转换为位于./Images.xcassets/icon-newsstand.imageset/icon-newsstand.png中的资产目录.
>在我的Resources文件夹中保留icon-newsstand.png作为项目的一部分.

这些解决方案都不起作用.这是我的info.plist也供参考.我已经修改了应用程序名称,仅供参考.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDisplayName</key>
    <string>---- ----</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string> 
    <key>CFBundleIcons</key>
    <dict>
        <key>UINewsstandIcon</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>icon-newsstand.png</string>
            </array>
            <key>UINewsstandBindingEdge</key>
            <string>UINewsstandBindingEdgeLeft</string>
            <key>UINewsstandBindingType</key>
            <string>UINewsstandBindingTypeMagazine</string>
        </dict>
    </dict>
    <key>UIBackgroundModes</key>
    <array>
        <string>newsstand-content</string>
    </array>
    <key>UINewsstandApp</key>
    <true/>
    <key>CFBundleIdentifier</key>
    <string>com.----.----</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.1</string>
    <key>CFBundleName</key>
    <string>---- ----</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>2.0.1.13830</string> <!-- The Version of the app. -->
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIPrerenderedIcon</key>
    <true/>
    <key>UIStatusBarHidden</key>
    <true/>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLName</key>
            <string>FB Connect</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>fb150871295037449------</string><!-- The app id must be appended to the end of this string. Example: <string>fb150871295037449connections</string>  -->
            </array>
        </dict>
    </array>
</dict>
</plist>

在升级Xcode并转换为图像资产目录后,有没有人遇到过这种情况?有没有人有任何想法从哪里开始改变我的项目?从我的搜索到目前为止,在报亭和Xcode 5问题方面,在线和StackOverflow的细节都很少.

我非常感谢任何帮助.谢谢!

解决方法

我发现这个问题只发生在iPad上.从那次发现开始,我意识到我的info.plist中缺少一个看起来像这样的部分:

<key>CFBundleIcons~ipad</key>
    <dict>
        <key>UINewsstandIcon</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>icon-newsstand.png</string>
            </array>
            <key>UINewsstandBindingEdge</key>
            <string>UINewsstandBindingEdgeLeft</string>
            <key>UINewsstandBindingType</key>
            <string>UINewsstandBindingTypeMagazine</string>
        </dict>
    </dict>

谜团已揭开!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读