2012-04-04 76 views
1

我的应用程序瞄准iphone,但显然它也可以安装在iPad上。ipad3上iphone应用程序的图标

在iPhone上,它使用正确的图标图像;在iPad 2上,它也使用正确的图标。

但是,在iPad 3上,不是使用图标作为图标,而是使用我的启动图像作为图标。这是iPad 3上的常见行为吗?或者是我的设置错误? (我使用了最新的SDK,主攻的iOS 5.0,如果该事项)

更新

我重视plist文件下方。我想我可以理解有什么不对...... [email protected]是启动图像的名称。令我感到困惑的是,这与我在“摘要”屏幕上的Xcode中看到的不一致。在Xcode中总结屏幕上:

  1. 我有视网膜图标设置为SOF_app_icon.png,我没有一个非Retina的图标集 - 它说:“没有图像指定”;
  2. 我有两个启动图像集:Default.png用于非视网膜,[email protected]用于视网膜。

这里是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>[email protected]</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> 
+0

iPad 3图标的文件名是什么? – 2012-04-04 21:12:31

回答

4

它使用启动图像(当您的应用程序推出后仍在加载即图像显示)?这没有任何意义。这当然不是正常的行为,我猜想你在你的Info.plist图标项中犯了一个错误。

请注意,您需要为iPad 3提供2x图标......请参阅Apple提供的cornucopia of information

如果您发布Info.plist的副本(包含任何敏感信息编辑)以及您的图标文件名,我们可能可以明确指出发生了什么问题。作为最后一点,我注意到应用程序的开发副本可能会轻微地因为图标等资产而发生冲突,这似乎是因为Xcode试图通过只复制它认为已经改变的资产来缩短启动时间。出于这个原因,实际上从设备/模拟器中删除应用程序并从头开始重新安装以确保您没有看到陈旧的信息可能是一个好主意。

编辑:感谢您发布Info.plist。这清除了一些事情。

让我们先从行:

<string>[email protected]</string> 

你看到的是,里面的图标文件设置,这说的iOS使用你的启动图像为图标?我猜这是一个错字,但我想确保你不会混淆不同的plist键。

+0

查看更新的答案。 – 2012-04-04 22:07:46

+0

嗯,我还没有看到,但Xcode已知有错误。如果你能重现它,我建议你在bugreport.apple.com上提交一个bug。无论哪种方式,手动更新(或者甚至只是通过GUI清除和重新加载)plist将解决您的问题。 – 2012-04-04 22:14:12

+0

Xcode自动将“Default.png”和“[email protected]”添加到我的图标文件列表中,并导致默认图像成为应用程序图标。我从列表中删除了这两个,现在应用程序图标显示出来。 (有iPad 3图标的问题) – jmosesman 2012-08-29 19:34:33

0

变化

<string>SOF_app_icon.png</string> 
    <string>[email protected]</string> 

<string>SOF_app_icon.png</string> 
    <string>[email protected]</string> 

你如何进行相应的配置告诉该设备设置视网膜图标为“缺省”的形象视网膜版本。

澄清“Default.png和[email protected]”是启动(启动)图像的标准名称。

+0

没错。 Default.png和[email protected]是启动图像的标准名称。这是我的plist中图标文件的顺序。 Icon.png,[email protected],Icon-72.png,[email protected],Default.png,[email protected],Icon-Small-50.png,Icon-Small-50 @ 2x。 png – 2012-08-28 06:41:48

1

有同样的问题 所有图标文件添加到iphone项目(包括icon-72.png,[email protected],Icon-Small-50.png,[email protected] )。

比iPad手动添加到info.plist文件。它表明订单很重要。 把它们放在最后并没有奏效。 我的订单现在是 Icon.png [email protected] Icon-72.png [email protected] 这对我很有帮助。

+0

由于某种原因,当我将[email protected]添加到项目中时,它没有将它添加到plist中,并将它放在plist中的Icon-72.png后为我工作。 – jmosesman 2012-08-27 22:01:56

1

为了记录,Xcode 4.3.1将CFBundleIconFiles 3和4用于针对iPhone的应用的启动图像。我在摘要窗口中清除了启动图像,并删除了info.plist中的项目,以确保我不是造成问题的人,并且Xcode在重新添加时始终将启动图像设置为相同的插槽。

0

解决方法很简单, 在您的plist->icon files->Default.png[email protected]可能被添加!请从pList中删除它,

It Works