2013-11-15 45 views
3

由於升級的Xcode到V5和轉換啓動和應用程序圖標圖像的圖像資產目錄,我已經無法看到報亭iOS上我的應用程序的圖標,書報亭6.1和iOS 7.相反,我在其位置看到常規應用程序圖標。由於iOS 7中明顯的樣式變化,我仍然無法深入測試,所以我仍在編譯iOS SDK 6.1。報亭圖標不會在Xcode 5顯示的iOS 6.1 SDK

這就是說,這裏是我試過在我的書報攤的圖標,圖標newsstand.png:

  1. 轉換圖標,newsstand.png到位於./Images.xcassets/的資產目錄圖標-newsstand.imageset /圖標-newsstand.png。
  2. 將Icon-newsstand.png保存在我的Resources文件夾中作爲項目的一部分。

這些解決方案都工作。這裏是我的info.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>---- ----</string> 
    <key>CFBundleExecutable</key> 
    <string>${EXECUTABLE_NAME}</string> 
    <key>CFBundleIcons</key> 
    <dict> 
     <key>UINewsstandIcon</key> 
     <dict> 
      <key>CFBundleIconFiles</key> 
      <array> 
       <string>icon-newsstand.png</string> 
      </array> 
      <key>UINewsstandBindingEdge</key> 
      <string>UINewsstandBindingEdgeLeft</string> 
      <key>UINewsstandBindingType</key> 
      <string>UINewsstandBindingTypeMagazine</string> 
     </dict> 
    </dict> 
    <key>UIBackgroundModes</key> 
    <array> 
     <string>newsstand-content</string> 
    </array> 
    <key>UINewsstandApp</key> 
    <true/> 
    <key>CFBundleIdentifier</key> 
    <string>com.----.----</string> 
    <key>CFBundleInfoDictionaryVersion</key> 
    <string>6.1</string> 
    <key>CFBundleName</key> 
    <string>---- ----</string> 
    <key>CFBundlePackageType</key> 
    <string>APPL</string> 
    <key>CFBundleSignature</key> 
    <string>????</string> 
    <key>CFBundleVersion</key> 
    <string>2.0.1.13830</string> <!-- The Version of the app. --> 
    <key>LSRequiresIPhoneOS</key> 
    <true/> 
    <key>UIPrerenderedIcon</key> 
    <true/> 
    <key>UIStatusBarHidden</key> 
    <true/> 
    <key>UISupportedInterfaceOrientations</key> 
    <array> 
     <string>UIInterfaceOrientationPortrait</string> 
     <string>UIInterfaceOrientationPortraitUpsideDown</string> 
     <string>UIInterfaceOrientationLandscapeLeft</string> 
     <string>UIInterfaceOrientationLandscapeRight</string> 
    </array> 
    <key>UISupportedInterfaceOrientations~ipad</key> 
    <array> 
     <string>UIInterfaceOrientationPortrait</string> 
     <string>UIInterfaceOrientationPortraitUpsideDown</string> 
     <string>UIInterfaceOrientationLandscapeLeft</string> 
     <string>UIInterfaceOrientationLandscapeRight</string> 
    </array> 
    <key>CFBundleURLTypes</key> 
    <array> 
     <dict> 
      <key>CFBundleTypeRole</key> 
      <string>Editor</string> 
      <key>CFBundleURLName</key> 
      <string>FB Connect</string> 
      <key>CFBundleURLSchemes</key> 
      <array> 
       <string>fb150871295037449------</string><!-- The app id must be appended to the end of this string. Example: <string>fb150871295037449connections</string> --> 
      </array> 
     </dict> 
    </array> 
</dict> 
</plist> 

在升級Xcode和轉換爲圖像資產目錄之後,有沒有人遇到過這個問題?有沒有人有任何想法開始對我的項目進行更改?在我的搜索結果中,網上和StackOverflow的細節在報刊和Xcode 5問題上都很少。

我非常感謝任何幫助。謝謝!

回答

7

我發現這個問題只與ipad公司發生的事情。自從那次發現以來,我意識到我的info.plist中有一段看起來像這樣:

<key>CFBundleIcons~ipad</key> 
    <dict> 
     <key>UINewsstandIcon</key> 
     <dict> 
      <key>CFBundleIconFiles</key> 
      <array> 
       <string>icon-newsstand.png</string> 
      </array> 
      <key>UINewsstandBindingEdge</key> 
      <string>UINewsstandBindingEdgeLeft</string> 
      <key>UINewsstandBindingType</key> 
      <string>UINewsstandBindingTypeMagazine</string> 
     </dict> 
    </dict> 

解決了神祕!

+0

我遇到同樣的問題,但我已經有了這個部分。更重要的是,從上面的問題來看,我可以*看到您發佈的原始代碼中的完全相同的部分。除了主應用程序info.plist之外,還有其他地方需要放置此代碼才能使其在iPad上工作嗎? – Ash

相關問題