XCode Landscape mode using Storyboard

77 views Asked by At

My current screen, portrait mode, 3 objects standing vertically is as per attachment. But to change landscape mode, all three objects got wrong. Please help me how to do for landscape mode as well.

enter image description here

What I expect to see is 3 object standing horizontally as per attachment.

enter image description here

2

There are 2 answers

0
Badal Shah On
2
fbitterlich On

Try to use the size classes feature of Autolayout.

In the Compact Height size class, uninstall the normal constraints of the three "objects" (custom views?) that anchor them vertically to each other, and add new ones that attach them side by side.