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.
More Related Contents:
- How to add constraints programmatically using Swift
- What is “Constrain to margin” in Storyboard in Xcode 6
- iOS: How does one animate to new autolayout constraint (height)
- Auto layout constraints issue on iOS7 in UITableViewCell
- With Auto Layout, how do I make a UIImageView’s size dynamic depending on the image?
- setNeedsLayout vs. setNeedsUpdateConstraints and layoutIfNeeded vs updateConstraintsIfNeeded
- How can I use Autolayout to set constraints on my UIScrollview?
- UITableView within UIScrollView using autolayout
- How to add Equal Spacing and equal width for button in iOS Auto layout
- When can I activate/deactivate layout constraints?
- Centering subview’s X in autolayout throws “not prepared for the constraint”
- Moving views with constraints
- UITextView that expands to text using auto layout
- Programmatically Add CenterX/CenterY Constraints
- iOS ScrollView needs constraint for y position or height
- Loading a ViewController inside a Container View
- Using autolayout in a tableHeaderView
- When should translatesAutoresizingMaskIntoConstraints be set to true?
- How can I load storyboard programmatically from class?
- iOS AutoLayout – get frame size width
- How do I access my viewController from my appDelegate? iOS
- Setting tableHeaderView height dynamically
- Xcode keeps building storyboard after each keystroke
- Can’t assign multiple Buttons to UINavigationItem when using Storyboard with iOS 5
- AutoLayout link two UILabels to have the same font size
- Dismissing both UINavigation views and Modal views at once programmatically
- @IBDesignable error: IB Designables: Failed to update auto layout status: Interface Builder Cocoa Touch Tool crashed
- The document Main.storyboard requires Xcode 8.0 or later
- Pushing a navigation controller is not supported
- Change UIImageView size to match image with AutoLayout