How to design ui in both portrait and landscape in ios5 using storyboard

How to create ui in both portrait and landscape design of an interface in iphone or ipad (Iam using a storyboard, not xib ..) ..

Thanks in advance.

+6
source share
1 answer

If you want the user interface to be developed using storyboards, the latest version of iOS has an Out Layout option.

Using Autolayout allows you to control the user interface for both modes.

Hope this helps you

http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2

Or

Another alternative presented on

IPhone storyboard: different scenes for portrait and landscape

When you add a view controller to the storyboard, it looks like. Call this container view. Add two types to the container view: portrait and landscape. Set the size of the portrait view and landscape view accordingly using the size inspector. Add buttons, more views, shortcuts, or something else to the portrait and landscape views you need for your application. Then, when orientation changes hide one view and show another.

Hope this helps you.

+4
source

Source: https://habr.com/ru/post/948833/


All Articles