2011-01-13 34 views
1

我有一个iPad应用程序,只支持横向模式(只是为了演示我正在做),最终它将支持两者。我希望我的应用以横向模式启动并显示我的闪屏图像。该应用程序在横向模式下正确启动,但是我的图像显示为向左旋转。图像文件处于横向模式,所以我不明白为什么它会这样做。有任何想法吗?飞溅图像呈现iPad应用程序侧身

这里是我的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>CFBundleIconFile</key> 
    <string></string> 
    <key>CFBundleIdentifier</key> 
    <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string> 
    <key>CFBundleInfoDictionaryVersion</key> 
    <string>6.0</string> 
    <key>UILaunchImageFile</key> 
    <string>welcome.png</string> 
    <key>UIInterfaceOrientation</key> 
    <string>UIInterfaceOrientationLandscapeRight</string> 
    <key>CFBundlePackageType</key> 
    <string>APPL</string> 
    <key>CFBundleSignature</key> 
    <string>????</string> 
    <key>CFBundleVersion</key> 
    <string>1.0</string> 
    <key>LSRequiresIPhoneOS</key> 
    <true/> 
    <key>NSMainNibFile</key> 
    <string>MainWindow</string> 
    <key>UISupportedInterfaceOrientations~ipad</key> 
    <array> 
     <string>UIInterfaceOrientationLandscapeRight</string> 
    </array> 
    <key>SignerIdentity</key> 
    <string>Apple iPhone OS Application Signing</string> 
</dict> 
</plist> 

回答

1

我不使用我的Info.plist任何UILaunchImageFile也不UIInterfaceOrientation键(我不指向任何Default.png文件,我只是扔到谟正确命名的文件)。

我只用UISupportedInterfaceOrientations〜ipad的,然后就用我的项目包括下列文件:

默认-LandscapeLeft.png 默认-LandscapeRight.png 默认-Portrait.png 默认-PortraitUpsideDown.png

在你的情况只是使用“Default-LandscapeLeft.png”和“Default-LandscapeRight.png”,你应该没问题。我的Info.plist中唯一与图形相关的东西是:

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