Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make launchscreen.storyboard support portrait and landscape

I use LaunchScreen.storyboard as my launch image. It works ok when the devices are portrait. When i launch the app on landscape mode on ipad or iphone7 plus whe image was stretched.How can i use two different image for portrait and landscape mode. Thank you.

like image 574
user6299706 Avatar asked Oct 17 '22 10:10

user6299706


1 Answers

You can set another image based on the size class traits. Unfortunately this does not help with left and right landscape rotation (you can only have an image for one of them). Also it is kind of base on the fact that for current iPhones landscape can be detected by having a compact height trait. This may change in future.

enter image description here

like image 97
sofacoder Avatar answered Nov 01 '22 11:11

sofacoder