Proud Member
Proud Member

Reputation: 40496

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

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

Upvotes: 25

Views: 27315

Answers (5)

senornestor
senornestor

Reputation: 4165

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]'
]

Upvotes: 2

Matthias Sala
Matthias Sala

Reputation: 579

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

Upvotes: 30

rraallvv
rraallvv

Reputation: 2933

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.

Upvotes: 10

Rob Johnston
Rob Johnston

Reputation: 610

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)

Upvotes: 59

user449710
user449710

Reputation: 89

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

Upvotes: 4

Related Questions