Sizes and Naming of Launch Image for iPhone app in iOS8

℡╲_俬逩灬. 提交于 2019-11-30 04:03: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

Tapas Pal

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

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!