Alx*_*Alx 11 xcode icons ios ios5
我正在使用新的资产目录AppIcon为iOS 5(理论上),6和7设置正确的图标.不幸的是,当我在iPad 1(使用iOS 5.1.1)上安装应用程序时,显示的图标不是正确的(它从另一个升级,当然是57x57).
我在创建资产目录后看到,在Info.plist
文件中添加了2个空条目:
Icon files (iOS 5)
CFBundleIcons~ipad
我已经阅读了很多"解决方案",但没有任何对我有用:(
其中一个解决方案是在plist中添加这些条目(并在项目中添加相应的图标):
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>Icon@2x.png</string>
<string>Icon-72.png</string>
<string>Icon-72@2x.png</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-Small</string>
<string>Icon-Small-50</string>
<string>Icon-72@2x.png</string>
<string>Icon-72.png</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
</dict>
</dict>
Run Code Online (Sandbox Code Playgroud)
但它根本不起作用.
我正在使用XCode 5.0(5A1413).
任何帮助将非常感激.
我终于找到了一个有效的解决方 我不再使用资产目录了.我把这些行放在我的info.plist文件中:
<key>CFBundleIconFile</key>
<string>Icon-57.png</string>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-72.png</string>
<string>Icon-72@2x.png</string>
<string>Icon-57.png</string>
<string>Icon-57@2x.png</string>
<string>Icon-60@2x.png</string>
<string>Icon-60.png</string>
<string>Icon-76@2x.png</string>
<string>Icon-76.png</string>
<string>Icon-29@2x.png</string>
<string>Icon-29.png</string>
<string>Icon-50@2x.png</string>
<string>Icon-50.png</string>
<string>Icon-40@2x.png</string>
<string>Icon-40.png</string>
</array>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-72@2x.png</string>
<string>Icon-57.png</string>
<string>Icon-72.png</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
</dict>
</dict>
Run Code Online (Sandbox Code Playgroud)
它现在像魅力:)
归档时间: |
|
查看次数: |
5894 次 |
最近记录: |