Launching a storyboard for multiple iOS devices and different orientations

My application supports all devices with 4 inches forward in both orientations.

iPhone - 5, 5S, 5C, 6, 6S, 6+, 6S +, SE

iPad 4, iPad Air, iPad Air2, iPad Pro, etc.

Using the asset catalog for the launch screen, it works fine, but in iPad Pro the application displays a standard keyboard, and iPad has an optimized keyboard that is bigger and does not give a better user experience.

As shown below, the app must use the launch storyboard, not object images, to get an optimized iPad Pro keyboard.

https://forums.developer.apple.com/thread/26357

Now the question is how to maintain both orientations during the startup screen storyboard?

How to add different launch images for portrait and landscape modes in a storyboard? Using the iPad size class in both orientations has both regular and regular sizes.

Note. Since its storyboard on the startup screen, you cannot configure a size class with a custom class.

A quick reply is welcome !!

Thanks, Siva

+6
source share
1 answer

In launchsScreen.storyboard add imageView and set four restrictions: top,bottom,leading,trailing .

Now in assets add separate images for iPhone and iPad with a resolution of 1x,2x,3x for iPhone and 1x,2x for iPad .

And set this image to this image. It will work for every device!

You can set different images for different size classes in assets. Therefore, for different orientations, you can set different images in assets .

refer to the Apple documentation for more details.

And yes, you can use vector graphics as suggested in the comment from @ pkc456 to make your application easy.

+6
source

All Articles