Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm wondering if anyone else has run into this problem. I read a few threads here about the proper naming and adding the key in the plist. I am able to get this working in the simulator for both the iPhone and iPad and on the actual iPhone device but not the iPad.

Here is what I have:

iPhoneLaunchImage~iPhone.png
iPhoneLaunchImage@2x~iPhone.png

iPadLaunchImage-Portrait~iPad.png
iPadLaunchImage-Portrait@2x~iPad.png
iPadLaunchImage-Landscape~iPad.png
iPadLaunchImage-Landscape@2x~iPad.png

In my MyApp-Info.plist, here is what I have:

<key>UILaunchImageFile~ipad</key>
<array>
    <string>iPadLaunchImage-Portrait~iPad.png</string>
    <string>iPadLaunchImage-Portrait@2x~iPad.png</string>
    <string>iPadLaunchImage-Landscape~iPad.png</string>
    <string>iPadLaunchImage-Landscape@2x~iPad.png</string>
</array>
<key>UILaunchImageFile~iphone</key>
<string>iPhoneLaunchImage~iPhone.png</string>

I also tried doing this by only using a string value for the iPad instead of an array and only put

<string>iPadLaunchImage</string>

and again it worked in the simulator but not on the actual iPad.

Any help appreciated.

share|improve this question

2 Answers

the following link may be help you

http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html

share|improve this answer
this link also may be help you flickr.com/photos/caseorganic/5119275478 – Rahul Patel Jul 26 '12 at 4:42
I read through the documentation several times and did edit my apps Info.plist and in the simulator I have it working although not on device. I edited the original post above. – d.altman Jul 27 '12 at 3:27
Thanks for pointing me to the documentation. It took a few reads. – d.altman Jul 28 '12 at 1:09
up vote 1 down vote accepted

In case someone runs across this issue and is as challenged as I was, this is actually very simple. I can't believe I made it so difficult. I simply needed to read carefully the documentation and do exactly as it says.

Create your launch images, as of iOS 5, at least four for the iPad and two for the iPhone. Name your images as follows: (The name I am using is only an example, you can use any you want.)

iPadLaunchImage-Portrait.png
[email protected]
iPadLaunchImage-Landscape.png
[email protected]

iPhoneLaunchImage.png
[email protected]

Make sure you use a distinct name for each device. You have more options available for the iPad, which you can read about in the documentation. Link is provided in the other answer.

Place all of these images in the top of your app's bundle directory. Then all you do is add two keys to YourApp-Info.plist.

Launch Image(iPad) string iPadLaunchImage
Launch Image(iPhone) string iPhoneLaunchImage

That's it. Images will load properly for both devices. Note that in the Info-plist file you don't put the .png, only the base name you used for your images.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.