XCode Landscape mode using Storyboard

124 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 best solutions below

0
On
2
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.