1
<key>UINewsstandApp</key>
<true/>
<key>UINewsstandIcon</key>
<dict>
    <key>CFBundleIconFiles</key>
    <array>
        <string>images/AppIcon-114.png</string>
    </array>
</dict>

I have an image located in images/AppIcon-114.png and it doesn't load this icon in the newsstand for my application. It shows the default paper like icon.

What is the path relative to?

Chris Muench
  • 17,444
  • 70
  • 209
  • 362

2 Answers2

5

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!

Jacek
  • 464
  • 4
  • 9
0

If it's still displaying the default icon even with the .png files in the right place, something tells me your icons aren't in the proper format (most likely this not the correct size).

Check out the "App Icons" section of the iOS programming guide for the icon sizes.

And also, in the "Contents of the UINewstandIcon Icon Dictionary" documentation, it recommends to not use the extension (i.e. get rid of the .png bit in the plist's array).

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • I can get my application icon to display, but what is the difference between that at the newsstand icon. Should I be seeing the newsstand icon instead of the application icon? – Chris Muench Dec 16 '11 at 20:42
  • The above comment is confusing. In the newsstand, are you trying to get your application icon to display or a custom icon or? – Michael Dautermann Dec 16 '11 at 21:13
  • Well there are 2 settings: 1. UINewsstandIcon CFBundleIconFiles icon_newsstand.png 2. CFBundleIconFiles icon.png icon@2x.png – Chris Muench Dec 16 '11 at 21:23
  • This happened to me too. The keys were right but it seems the simulator does some caching. It showed after the sim. was closed once. – Javier C Dec 22 '11 at 19:43