0

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

PPShein
  • 13,309
  • 42
  • 142
  • 227

2 Answers2

0

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.

fbitterlich
  • 882
  • 7
  • 24
0

Please check this link. it will be helpfull for you.

Evenly space multiple views

IOS layout for portrait and landscape

Autolayout in potrait and landscape

Community
  • 1
  • 1
Badal Shah
  • 7,541
  • 2
  • 30
  • 65