7
votes

My application supports all devices from 4 inch onwards in both orientations.

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

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

Using asset catalog for launch screen its working fine but in iPad Pro app displays standard keyboard rather iPad Pro optimized keyboard which is bigger and doesn't give best user feel.

As per below link app should be using launch storyboard rather than asset images to get optimized iPad Pro native keyboard.

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

Now question is how to support both orientations during launch screen storyboard ?

How to add different launch images for portrait and landscape modes in storyboard ? Using size class for iPad in both orientations its both Regular and Regular size.

Note - Because it launches a screen storyboard, one can't customize the size class with custom class.

1
Don't understand why its -ve rank. This is no where documented clearly about this point and i believe its 100% technical question.Srivathsa
It was probably the request for priority attention that irritated a reader. Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.halfer
Thanks for making me aware of why it was down voted and providing me guidelines in posting a query. This will help and I will note this point in my future Questions.Srivathsa

1 Answers

5
votes

In your launchsScreen.storyboard add imageView and set it's four constraints like : top,bottom,leading,trailing.

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

And set that image to that imageview. It will manage then for every device!

You can set different images for different size class in assets. So for different orientation you can set different images in assets.

refer Apple documentation for more details.

And yes you can use vector graphics as suggested in comment by @pkc456 to keep your app light weight.