我的应用程序是针对iphone的,但显然它也可以安装在iPad上。
在iPhone上,它使用正确的图标图像;在iPad 2上,它也使用正确的图标。
然而,在iPad 3上,它没有使用图标作为图标,而是使用我的启动图像作为图标。这是iPad 3上常见的行为吗?还是我的设置错了?(我使用最新的SDK,如果这很重要的话,我将以iOS 5.0为目标)
更新
我附上了下面的卷宗。我想我能理解怎么回事..。Default@2x.png是启动映像的名称。令我困惑的是,这与我在“摘要”屏幕上看到的Xcode不匹配。在摘要屏幕上的Xcode中:
下面是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>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>SOF_app_icon.png</string>
<string>Default@2x.png</string>
</array>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.overwaitea.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>NSZombieEnabled</key>
<false/>
<key>UIBackgroundModes</key>
<array>
<string>location</string>
</array>
<key>UIFileSharingEnabled</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>location-services</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>corelocation</key>
<string>YES</string>
</dict>
</plist>发布于 2012-04-04 21:13:25
它使用启动映像(即在启动后应用程序仍在加载时显示的图像)?这没有任何意义。这当然不是正常的行为,我猜您在Info.plist图标条目中犯了错误。
请注意,您需要为iPad 3提供一个2x图标..。参见苹果提供的信息聚宝盆。
如果你发布一份你的Info.plist的副本(任何敏感的信息被编辑),连同你的图标文件名,我们可能会准确地确定出了什么问题。
最后,我注意到,应用程序的开发副本可能会稍微偏离图标等vis资产,似乎是因为Xcode试图通过复制它认为已经改变的资产来缩短发布时间。由于这个原因,从设备/模拟器中删除应用程序并从头重新安装可能是个好主意,只是为了确保您没有看到陈旧的信息。
编辑:谢谢你发布的Info.plist。这就澄清了一些事情。
让我们从下面这句话开始:
<string>Default@2x.png</string>您是否看到,在您的图标文件设置,这是告诉iOS使用您的启动图像作为一个图标?我猜这是一个错误,但我想确保您没有混淆不同的plist键是为了什么。
发布于 2012-05-09 11:16:46
所有添加到iphone项目中的图标文件都有相同的问题(包括图标-72.png,图标-72@2x.png,图标-小-50.png,图标-小-50@2x.png)。
而不是手动将iPad文件添加到info.plist文件中。这表明秩序很重要。把它们放在最后是没用的。我现在的订单是Icon.png Icon@2x.png图标-72.png图标-72@2x.png,这对我有效。
发布于 2012-05-31 18:29:43
作为记录,Xcode 4.3.1使用CFBundleIconFiles 3和4作为针对iPhone的应用程序的启动图像。我清除了摘要窗口中的启动图像,并删除了info.plist中的项目,以确保不是我造成问题的原因,而且Xcode在重新添加时总是将启动图像设置为相同的插槽。
https://stackoverflow.com/questions/10019141
复制相似问题