Launch Screen Image size for all iOS screen sizes

前端 未结 2 832
一个人的身影
一个人的身影 2021-02-10 17:13

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

相关标签:
2条回答
  • 2021-02-10 17:57

    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.

    0 讨论(0)
  • 2021-02-10 18:07

    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)

    0 讨论(0)
提交回复
热议问题