7

What are sizes/naming of the launch images used for iPhone app in iOS?

David Snabel-Caunt
  • 57,804
  • 13
  • 114
  • 132
samir85
  • 521
  • 1
  • 4
  • 11

4 Answers4

32

Size Conventions

iPhone3g : 320 x 480

iPhone4/4s : 640 x 960

iPhone5/5s : 640 x 1136

iPhone6 : 750 x 1334

iPhone 6plus : 1242 x 2208

Naming Conventions

For developers who don't wan't to use 'Asset Catalogs', they need to give specific names to launch images

iPhone3g : 'Default.png'

iPhone4/4s : 'Default@2x.png'

iPhone5/5s : 'Default-568h@2x.png'

iPhone6 : 'Default-667h@2x.png'

iPhone6plus : 'Default-736h@3x.png'

For developers who would use 'Asset Catalogs', they don't need to give specific names to launch images

Go to ProjectSetting -> General-> Under 'App Icons and Launch Images', select 'Use Asset Catalog' for 'Launch Image Source', and drag-drop the launch images for their OS version's/Orientations

samir85
  • 521
  • 1
  • 4
  • 11
  • As you mention in your question it's only for iOS 8 then why developers will not use Asset Catalogs. While it's pretty easy.... :/ – Tapas Pal Nov 06 '14 at 05:48
  • Its upto the developer to use either of the two options, whichever of two he is comfortable with. I have explained two options here for the reference and also to ascertain the fact that there are two options for them. – samir85 Nov 07 '14 at 06:05
  • 1
    And iPhone6plus Landscape? – Dmitry Dec 06 '14 at 22:02
  • I added only one image with size (Default-736h@3x.png, 1242 x 2208) to the asset catalog and used it in the launch xib file, and it runs in all screen sizes correctly, so not sure if creating these size variants necessary anymore. – fullmoon May 24 '16 at 05:09
  • I tried this, and it didn't work: http://stackoverflow.com/questions/43199231/is-it-okay-to-leave-out-unnecessary-launch-images Any idea why? Thanks. – Kartick Vaddadi Apr 04 '17 at 05:55
9

If you use images.xcassets then you neither need to worry about the naming conventions nor to add those images into your project resource explicitly. Just drag and drop the appropriate size image to the appropriate box and XCode will do the rest.

And for image sizes please refers the Apple iOS Human Interface Guidelines

enter image description here

gitsitgo
  • 6,589
  • 3
  • 33
  • 45
Tapas Pal
  • 7,073
  • 8
  • 39
  • 86
  • 2
    +100 IMHO everyone should be using Asset Catalogs. It makes everything so much easier. And completely removes having to mess around with naming conventions. – Fogmeister Nov 05 '14 at 10:51
  • 5
    Why does the "Apple iOS Human Interface Guidelines" have a different naming convention... When it says "iPhone 5 @2x", which box do I drag it into? Can't any iPhone model have any iOS? what's the point of these guidelines if the two have no direct correlation? – Cbas May 17 '16 at 19:47
1

For iPhone 6:

- 750 x 1334 (@2x) for portrait

- 1334 x 750 (@2x) for landscape

For iPhone 6 Plus:

- 1242 x 2208 (@3x) for portrait

- 2208 x 1242 (@3x) for landscape

Nagarjun
  • 6,557
  • 5
  • 33
  • 51
  • I tried this, and it didn't work: http://stackoverflow.com/questions/43199231/is-it-okay-to-leave-out-unnecessary-launch-images Any idea why? Thanks. – Kartick Vaddadi Apr 04 '17 at 05:55
0

As an alternative, you could consider using a using a launch storyboard or xib instead. Doing it this way only requires one that adapts to all sizes.

Note, this is works for iOS 8 only. If you use this in an app that also targets iOS 7, it will use the standard launch images when running on iOS 7 devices - but of course you only need 3.5 & 4 inch as the new larger iPhones don't support iOS 7!

See the Apple docs for more details.

Ashley Mills
  • 50,474
  • 16
  • 129
  • 160