網頁

2013年6月7日 星期五

iOS開發筆記 - UIBackgroundModes & Newstand features failed

有朋友又請教我一個問題,如下圖:

查了下,發現這是指app是Newsstand的app,內容是敘述要上架的東西,照著iOS 5 newsstand application icon所提就可以解決,不過討論完後,根本不需要啊~都砍光光~比較快~

突然覺得還是都貼過來比較放心,iOS 5 newsstand application icon討論串就貼在底下了

I just did a quick test. In my project I put the icon files in the main app directory, where main.m resides. They are called Icon.png and Icon@2x.png for the application icons, and Newsstand-Cover-Icon.png and Newsstand-Cover-Icon@2x.png
The CFBundleIcons section of the *.plist file (found in the main app directory) looks like this:
<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>Icon.png</string>
            <string>Icon@2x.png</string>
        </array>
    </dict>
    <key>UINewsstandIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>Newsstand-Cover-Icon.png</string>
            <string>Newsstand-Cover-Icon@2x.png</string>
        </array>
        <key>UINewsstandBindingType</key>
        <string>UINewsstandBindingTypeMagazine</string>
        <key>UINewsstandBindingEdge</key>
        <string>UINewsstandBindingEdgeLeft</string>
    </dict>
</dict>
Other relevant sections of the *.plist file are set to this:
<key>UIBackgroundModes</key>
<array>
    <string>newsstand-content</string>
</array>


<key>UINewsstandApp</key>
<true/>
You may have to build and launch your app on the device a couple of times, before the icons appear on the Newsstand shelf.
You can edit *.plist files with a text editor like TextWrangler (free), TextMate (paid), or MacVim (free).
Hope this helps!

參考網址:
iOS 5 newsstand application icon
Contents of the UINewsstandIcon Dictionary

沒有留言:

張貼留言