我刚做了一个快速测试。在我的项目中,我将图标文件放在main.m所在的主应用程序目录中。它们被称为Icon.png和[email protected]用于应用程序图标,Newsstand-Cover-Icon.png和[email protected]
* .plist文件的CFBundleIcons部分(找到在主app目录中)看起来是这样的:
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>[email protected]</string>
</array>
</dict>
<key>UINewsstandIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Newsstand-Cover-Icon.png</string>
<string>[email protected]</string>
</array>
<key>UINewsstandBindingType</key>
<string>UINewsstandBindingTypeMagazine</string>
<key>UINewsstandBindingEdge</key>
<string>UINewsstandBindingEdgeLeft</string>
</dict>
</dict>
其他的*的.plist文件的相关部分被设置成这样:
<key>UIBackgroundModes</key>
<array>
<string>newsstand-content</string>
</array>
<key>UINewsstandApp</key>
<true/>
您可能必须建立并启动设备上您的应用程序几次,在图书馆出现在报亭货架上之前。
您可以使用TextWrangler(免费),TextMate(付费)或MacVim(免费)等文本编辑器编辑* .plist文件。
希望这会有所帮助!
如果您暂时将png图标放入主文件夹(即与images文件夹相同的级别),并修改plist中的字符串数组,那么这是否解决了问题? – 2011-12-16 19:47:43
不,它仍然显示默认图标。 – 2011-12-16 19:49:55