2011-01-13 2 views
1

필자는 데모를 위해서만 가로 모드를 지원하는 iPad 애플리케이션을 보유하고 있습니다. 내 앱을 가로 모드로 실행하고 내 스플래시 이미지를 표시하고 싶습니다. 앱이 가로 모드에서 올바르게 시작되지만 내 이미지가 왼쪽으로 회전되어 표시됩니다. 이미지 파일이 가로 모드에 있기 때문에 왜 이렇게하는지 이해할 수 없습니다. 어떤 아이디어? 여기 스플래시 이미지가 iPad 앱용으로 옆으로 렌더링됩니다.

내 PLIST입니다 : 내가 어떤 Default.png 파일을 지정하지 않는 (내의 Info.plist에 어떤 UILaunchImageFile도 UIInterfaceOrientation 키를 사용하지 않는

<?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

, 난 그냥 인텔리로 던져 파일 이름이 올바르게 지정되어 있어야합니다.

난 단지 UISupportedInterfaceOrientations ~ 아이 패드을 사용하고 그냥 내 프로젝트에 다음 파일을 포함한다 :

기본-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> 
관련 문제