Select the "Embedded" and "Calculated" elements together by clicking on the button.
With these two items selected, use the restrictions menu:

This menu, as well as the careful selection of items, is central to the happy editing of restrictions in IB. In your case, select the central element, the "Pin" menu. Select "Vertical Spacing" - this will create a new restriction on the vertical distance between the two elements. Alternatively, select one item and click "Top Observation Space" to bring it up, not down.
Now you can select and delete vertical spaces at the bottom of the view. IB will not allow you to remove this sooner since you must have a complete, unambiguous set of restrictions. After adding a new vertical distance limit, you now have this.
To illustrate further, here is an empty view controller with one text field that I dragged:

All restrictions are purple, which means that IB has added them for me (these are system restrictions), and they cannot be removed - these are the minimum restrictions necessary for the placement and size of the text field.
Now I will select the text box and attach the top space to the super-verb:

Now you can see that two restrictions of the vertical space have changed to blue (now they are limited by the user), and they have a thicker appearance in the editor. This means that one of them can be deleted. I select the restriction for the lower space and delete delete:

Note that this still looks like a user restriction - but if I try to remove it, IB will automatically recreate the binding of the system restriction to the bottom of the supervisor, returning us to the square.
I wrote about this and similar startup themes here .
jrturton
source share