Use the AutoLayout pin should be familiar with this option to set the margin around the control: Top Space, leading space, Trailing space, Bottom space.
In the age of Xcode6, you can have 2 options to use your PIN:
1) By menu item: Editor->pin
2) through the pin button below the designer, this is it (the pin is displayed on the mouse):
The two methods are slightly different, using the pin (Editor->pin) in the menu item can directly select the top Space to Superview, is directly set the distance Superview the top margin, if the pin button (that), He chooses the margin (not necessarily superview) from the previous view based on the current view location, and if in Navigationcontroller, the top Space to top Layout guide is often present, about top Layout guide and bottom layout guide What a ghost I haven't figured out yet, but in general we only want the view constraint to be related to Superview. So when this happens, I usually delete the constraint and then set the top Space to Superview through Editor->pin.
Well, the above is nonsense, the following is the focus of this article.
Believe that there are many people will upgrade Xcode to the Xcode7, then you will find the editor can not find a pin, no. It's gone. It's gone.
However, with the pin button, the top space to top Layout guide will still appear, what if you want to set up a top space to Superview?
Looking for a long time, and finally found the answer on the StackOverflow (here by the way, in addition to the trough Baidu search, except very old data, really can't find valuable information, can use Google or Google bar)
Here's the answer: http://stackoverflow.com/questions/28766210/autolayout-add-constraint-to-superview-and-not-top-layout-guide
There is a downward arrow to the right of the constraint input box, and the arrow will appear with a selection, such as:
See, now tick is "Top Layout Guide", we just select the view can be, out of the effect is supview. This view represents the root view of Viewcontroller, because this is directly added to the root view of Viewcontroller, so the view here is Superview.
If there are other controls present, the options here may be different, but it's almost clear at a glance.
Well, to say is so much, hope can help you, if there is a mistake to welcome correct.
Xcode7, Vanishing pin menu (Editor->pin)