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.
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
- UITextView that expands to text using auto layout
- 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?
- How to add Equal Spacing and equal width for button in iOS Auto layout
- When can I activate/deactivate layout constraints?
- Moving views with constraints
- When should translatesAutoresizingMaskIntoConstraints be set to true?
- iOS ScrollView needs constraint for y position or height
- Using Auto Layout in UITableView for dynamic cell layouts & variable row heights
- UICollectionView Self Sizing Cells with Auto Layout
- Evenly space multiple views within a container view
- How do I adjust the anchor point of a CALayer, when Auto Layout is being used?
- When is layoutSubviews called?
- Converting Storyboard from iPhone to iPad
- What is NSLayoutConstraint “UIView-Encapsulated-Layout-Height” and how should I go about forcing it to recalculate cleanly?
- reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling
- Outlets cannot be connected to repeating content iOS
- Unable to simultaneously satisfy constraints, will attempt to recover by breaking constraint
- Storyboard doesn’t contain a view controller with identifier
- How to use Auto Layout to move other views when a view is hidden?
- UICollectionView, full width cells, allow autolayout dynamic height?
- Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5
- Can I change multiplier property for NSLayoutConstraint?
- iOS AutoLayout – get frame size width
- Unable to make outlet connection to a constraint in IB
- Layout issues after updating to Xcode 8
- AutoLayout with hidden UIViews?
- Using ScrollView Programmatically in Swift 3
- AutoLayout + RTL + UILabel text alignment
- Need assistance setting two buttons of equal width, side by side Autolayout
- UIStackView Distribution Fill Equally
- Perform Segue programmatically and pass parameters to the destination view
- How to determine height of UICollectionView with FlowLayout
- How can I get a view’s current width and height when using autolayout constraints?
- UITableViewCell with autolayout left margin different on iPhone and iPad
- How to dynamically change the font size in auto layout iOS?
- Xcode keeps building storyboard after each keystroke
- Auto-layout: What creates constraints named UIView-Encapsulated-Layout-Width & Height?
- Auto layout UIScrollView with subviews with dynamic heights
- How to convert a NIB-based project to a Storyboard-based? [closed]
- How to customize the navigation back symbol and navigation back text?
- Xcode changes unmodified storyboard and XIB files
- iOS Autolayout: two buttons of equal width, side by side
- What are the benefits of using Storyboards instead of xib files in iOS programming?
- table header view height is wrong when using auto layout, IB, and font sizes