简体   繁体   中英

Launch Screen Image size for all iOS screen sizes

I am trying to create a lunch screen image for my iOS app. But I am not sure whats the right size for it.

According to apple website for iPhone 6 the size should be 750 x 1334 (@2x) for portrait.

But my question is, how to create a launch screen image that will fit for all screen sizes such as iPhone 5, 5s, 6, 6 plus, iPads etc?

Whats the correct way of doing this?

Go to images.xcassets there you can see launch image sizes.Just Enable iOS version from right side. iPhone Portrait iOS 8:- 1242*2208 (5.5 inch) 750*1334 (4.7 HD)

iPhone Landscape iOS 8:-2208*1242 (5.5inch)

iphone Portrait iOS 7,8 :- 640*960 (@2x) 640*1136 (Retina)

iPhone Portrait 5,6 :- 320*480 (@x) 640*960 (@2x) 640*1136 (retina4)

在此输入图像描述

But my question is, how to create a launch screen image that will fit for all screen sizes such as iPhone 5, 5s, 6, 6 plus, iPads etc?

That will be very hard to do. The devices have different aspect ratios and the difference in size between say iPhone 5 and iPad Air is pretty big to use one image for all. If you want to use the classical launch screen with a screenshot, resizing one image won't look the same as the user interface on different devices. If you want a launch bitmap image you will need to supply all the necessary sizes.

Whats the correct way of doing this?

You can create either launch PNG image or launch screen as a storyboard.

For launch image, your project has an assets catalog. Either use existing or add new iOS launch image . The editor will show you all required sizes.

For a storyboard, your application probably already has LaunchScreen.storyboard. You typically won't create specific size or sizes here, but use auto layout that will resize the screen appropriately.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM