Reputation: 9698
I am new to auto layout and need to resize some views when it rotates to landscape.
My view hierarchy from top to bottom is:
All views are adjacent to each other and when rotated stay in the same layout.
However, I need to shrink both scroll views by a small amount so everything fits onto the screen when in landscape mode.
What is the proper way to do this? I have tried manually changing the scrollview frames in a orientation change method, but the view size doesn't change.
Upvotes: 2
Views: 2830
Reputation: 104092
This should be sufficient to define every views size and position. When the view gets smaller on rotation, the only thing free to change will be the scroll view heights.
Upvotes: 2