Reputation: 10959
I am new in auto layout feature for iOS. I found very good tutorial for this here
Now I am practicing by myself and I create one simple registration form using autolayout like this:
view->scrollview->all controls
As you can see parent for all control is scroll view now I am maintaining trailing space to superview(here Scrollview) of textview to 20 and I also remove the fix length for all the text view so in landscape mode textview width will increase automatically by maintaining the trailing space but the result is like below image (landscape view):
As you can see the trailing space is not maintain. If I set all the control directly in view and remove scroll view than it is working perfectly well. Am I missing something?
Upvotes: 0
Views: 332
Reputation: 9836
Trailing and Leading space of "Registration" label is causing issue in your case.
So in order to get rid of this situation follow these steps.
Upvotes: 1