Launch Screen Image size for all iOS screen sizes

牧云@^-^@ 提交于 2021-02-18 03:24:08

问题


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?


回答1:


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)




回答2:


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.



来源:https://stackoverflow.com/questions/32114162/launch-screen-image-size-for-all-ios-screen-sizes

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