tags:

views:

361

answers:

3

I'm following the iOS Programming guide on "Providing Launch Images for Different Orientations" and can't seem to get my iPad-specific launch images to work. If I'm reading the docs right, "Default~ipad.png" should be used as the launch image if I launch my app in the iPad simulator, but instead it's using my "Default.png".

If I tell the simulator to run as an iPhone4, it does correctly use my "[email protected]". But that just leaves me more confused as to why the iPad version isn't working.

Anyone know how to make iPad-specific launch images work?

A: 

What docs are you reading? I thought the default image had to be "Default-Portrait.png" for the iPad?

[Update: Nope - you're correct. Please ignore this answer.]

See the Application Launch Images docs for the full info.

middaparka
See the doc on "Build-Time Configuration Details", under "Providing Device-Specific Launch Images"http://developer.apple.com/iphone/library/documentation/iphone/conceptual/iphoneosprogrammingguide/BuildTimeConfiguration/BuildTimeConfiguration.html#//apple_ref/doc/uid/TP40007072-CH7-SW18
Cruinh
@Cruinh I presume the PNG file is the correct size? (768 x 1004)
middaparka
+4  A: 

I managed to get it working by supplying an iPad-specific key in the app's Info.plist, rather than using an iPad-specific filename, as the docs suggest.

My Launch image for iPad is "iPadDefault.png" and I added the following key/value in my Info.plist

<key>UILaunchImageFile~ipad</key>
<string>iPadDefault</string>
Cruinh
A: 

I finally got both landscape orientation working on ipad, hi res landscape in iphone 4, and low res landscape on the rest using the following (1 landscape orientation for both phones, I use no other orientation or launch properties in plist):

    <key>UILaunchImageFile</key>
<string>Default</string>
<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationLandscapeRight</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
</array>

My images are oriented as follows (note that both phone images are rotated 90 clockwise, but appear landscape on phone): Default-Landscape.png (1024 x 768) landscape orientation Default.png (320 x 480) portrait orientation (when i look at it in finder it looks rotated 90 deg clockwise from the image above) [email protected] (640 x 960) same orientation as above

Tylerc230