2011-06-10 138 views
0

我有一個iPhone應用程序。當我在iPad上運行它時,一切看起來都很棒(但很小),除了啓動屏幕也很小(不是全屏)並且不是真正的比例。在iPad上啓動屏幕

我已閱讀文檔,但我不確定自己出錯的位置。我添加了Default-Portrait.png和Default-Landscape.png,但它沒有改變任何東西。

我真的不介意它是怎麼回事,比我不希望它在App Store中被拒絕是因爲這一點。

編輯:我的info.plist(如果你看到其他奇怪的事情,請讓我知道我今天提交)

<key>CFBundleDevelopmentRegion</key> 
<string>en</string> 
<key>CFBundleDisplayName</key> 
<string>${PRODUCT_NAME}</string> 
<key>CFBundleDocumentTypes</key> 
<array/> 
<key>CFBundleExecutable</key> 
<string>${EXECUTABLE_NAME}</string> 
<key>CFBundleIconFile</key> 
<string></string> 
<key>CFBundleIconFiles</key> 
<array> 
    <string>Icon.png</string> 
    <string>[email protected]</string> 
    <string>Icon-72.png</string> 
    <string>Icon-Small-50.png</string> 
    <string>Icon-Small.png</string> 
    <string>[email protected]</string> 
    <string>Icon-72.png</string> 
    <string>Icon-72.png</string> 
</array> 
<key>CFBundleIdentifier</key> 
<string>com.xx.xxx</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>CFBundleURLTypes</key> 
<array> 
    <dict> 
     <key>CFBundleURLName</key> 
     <string></string> 
     <key>CFBundleURLSchemes</key> 
     <array> 
      <string>fb1234</string> 
     </array> 
    </dict> 
</array> 
<key>CFBundleVersion</key> 
<string>1.0</string> 
<key>LSRequiresIPhoneOS</key> 
<true/> 
<key>NSMainNibFile</key> 
<string>MainWindow</string> 
<key>SHKFacebookKey</key> 
<string>1234</string> 
<key>SHKFacebookSecret</key> 
<string>1234</string> 
<key>SHKMyAppName</key> 
<string>xxx</string> 
<key>SHKMyAppURL</key> 
<string>http://itunes.apple.com/xxx</string> 
<key>UIInterfaceOrientation</key> 
<string>UIInterfaceOrientationPortrait</string> 
<key>UIInterfaceOrientation~ipad</key> 
<string>UIInterfaceOrientationPortrait</string> 
<key>UIStatusBarHidden</key> 
<true/> 
<key>UISupportedInterfaceOrientations</key> 
<array> 
    <string>UIInterfaceOrientationPortrait</string> 
</array> 
<key>UISupportedInterfaceOrientations~ipad</key> 
<array> 
    <string>UIInterfaceOrientationPortrait</string> 
    <string>UIInterfaceOrientationPortraitUpsideDown</string> 
    <string>UIInterfaceOrientationLandscapeLeft</string> 
    <string>UIInterfaceOrientationLandscapeRight</string> 
</array> 
<key>UTExportedTypeDeclarations</key> 
<array/> 
<key>UTImportedTypeDeclarations</key> 
<array/> 
+0

您正在開發一款通用應用程序或iPad應用程序嗎? – 2011-06-10 16:14:10

+0

它只適用於iPhone,但我也希望它在iPad上也可以。我會在稍後做一個單獨的iPad或通用。 – Snilleblixten 2011-06-10 16:28:05

回答

1

確保這些添加到您的Info.plist文件

<key>UISupportedInterfaceOrientations~ipad</key> 
<array> 
    <string>UIInterfaceOrientationPortrait</string> 
    <string>UIInterfaceOrientationPortraitUpsideDown</string> 
    <string>UIInterfaceOrientationLandscapeLeft</string> 
    <string>UIInterfaceOrientationLandscapeRight</string> 
</array> 

即使您的方向沒有正常工作,但讓這些選擇正確的啓動屏幕是絕對必要的。

順便說一句你不會被拒絕。這只是一個良好的編程道德問題。

+0

我已經這樣做了,但沒有區別。它仍然看起來像是一個方形圖標的啓動屏幕,而不是我提供的iphone啓動圖片或iPad格式的圖片。 – Snilleblixten 2011-06-10 16:29:41

+0

「未拒絕」。這就是我想聽到:) – Snilleblixten 2011-06-10 17:31:34

+0

發佈您的info.plist – bioffe 2011-06-10 19:21:48