Before answering directly, I would say that I adhere to the self-timer and do not look at frames, springs and structures.
Now print UILabel. Select UILabel. Go to editor> display leading and upper space for viewing. Also attach the width and height (correct them if you want). Your problem has been resolved.
Go through this autorun book and keep playing. Auto Layout iOS Demystified, 2nd Edition
Updated after editing the question:
For a set of Label1:
- Mark the leading, upper and lower viewing space.
- Enter height (not width)
For a set of Label1:
- Pin Trailing, upper and lower viewing space.
- Return the height (not the width) again.
Now select both marks and go to the horizontal distance between them. And if while you are updating the frame ... also fulfill the restriction on updating.
user3693546
source share