Autolayout: Add constraint to superview and not Top Layout Guide?

There is an arrow to the right of the constraint constant value. If you click on it, a menu pops out where you can choose what is it that you want to make your constraint relative to. If you choose ‘View’, than it will pin it to the top of the view.

enter image description here

Leave a Comment