How to correctly name all those Launch Images for an universal app?
Asked Answered
S

5

25

Default.png for iphone, Default4.png for iPhone 4 (or is it [email protected]?), and Default-iPad.png. Is that correct?

Sirree answered 20/10, 2010 at 0:49 Comment(0)
T
4

Default.png and [email protected] and Default-iPad.png (not 100% sure on this one)

if you specify your own name like MyLaunchImage.png, the iPad specific version would be MyLaunchImage~ipad.png. Although you could include a MyLaunchImage~iphone.png image for the iPhone specific version (and a MyLaunchImage@2x~iphone.png for the high-resolution variant)

taken from apple documentation

Talaria answered 20/10, 2010 at 0:58 Comment(0)
R
59

Here's the list of default launch image file names as of iOS 6:

You can set the key UILaunchImageFile in your info.plist to override Default in all of the file names above. For example, if you specify the value LaunchImage in this key, then the launch image for a standard resolution iPhone would be LaunchImage.png.

Additionally, if you want to provide separate launch images for iPad apps that are flipped 180-degrees from the standard, you can substitute the following modifiers in place of -Portrait and -Landscape:

  • -Portrait (home button down)
  • -PortraitUpsideDown (home button on top)
  • -LandscapeLeft (home button on left side)
  • -LandscapeRight (home button on right side)
Rosenblast answered 12/12, 2012 at 18:47 Comment(5)
iPad mini uses the same images as iPad2 (Default-Portrait.png and Default-Landscape.png from above reply)Trafalgar
Please also note the device specific modifiers like ~ipad and ~iphone. So a launch image for portrait retina iPad should actually be named as Default-Portrait@2x~ipad.png.Gentle
Where are these file names listed officially?Vic
iamjustaprogrammer: nowhere.Molecular
@Henrik Hah! Typical Apple.Ammoniac
S
30

I adjusted Rob/Lando's answer with the latest iPhone 6 and iPhone 6 Plus resolutions.

Shushubert answered 24/11, 2014 at 15:33 Comment(3)
It's incorrect: [email protected] (iPhone 6 Plus landscape).Scissors
How about those not including the status bar height?Barfuss
Use [email protected] and [email protected] for iPad ProHeteroclite
G
10

I've just found a handy table with all the filenames for the Default launch image, I've posted it here to save some time in the future instead of looking for something similar or waste time browsing my endless list of bookmarks.

Griffis answered 21/12, 2013 at 23:37 Comment(2)
Yep, this work for me, except for iphone 6 which probably has to be specified in the info.plist. I dread the future, already it's tons of work. With the huge list of devices, Apple will probably have to do what they should have done from the beginning - ask for 1 hires image and spend .01% CPU time scaling and cropping it to the device used. "How hard can it be?", the developer cries. Apple answers, "As hard as possible."Molecular
@Henrik Hah! Typical Apple.Ammoniac
T
4

Default.png and [email protected] and Default-iPad.png (not 100% sure on this one)

if you specify your own name like MyLaunchImage.png, the iPad specific version would be MyLaunchImage~ipad.png. Although you could include a MyLaunchImage~iphone.png image for the iPhone specific version (and a MyLaunchImage@2x~iphone.png for the high-resolution variant)

taken from apple documentation

Talaria answered 20/10, 2010 at 0:58 Comment(0)
J
2

I inspected the files in the main bundle (iOS 9 using LaunchImage in image assets) and this is what I see:

[
'[email protected]',
'[email protected]',
'LaunchImage-700-Landscape@2x~ipad.png',
'LaunchImage-700-Landscape~ipad.png',
'LaunchImage-700-Portrait@2x~ipad.png',
'LaunchImage-700-Portrait~ipad.png',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'LaunchImage-Landscape@2x~ipad.png',
'LaunchImage-Landscape~ipad.png',
'LaunchImage-Portrait@2x~ipad.png',
'LaunchImage-Portrait~ipad.png',
'LaunchImage.png',
'[email protected]'
]
Jammiejammin answered 5/2, 2016 at 18:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.