For others who come here: I got this error, because I added the constraints before I added the subviews to the hierarchy.
More Related Contents:
- With Auto Layout, how do I make a UIImageView’s size dynamic depending on the image?
- setNeedsLayout vs. setNeedsUpdateConstraints and layoutIfNeeded vs updateConstraintsIfNeeded
- Moving views with constraints
- How to add constraints programmatically using Swift
- How do I animate constraint changes?
- Unable to simultaneously satisfy constraints, will attempt to recover by breaking constraint
- Can I change multiplier property for NSLayoutConstraint?
- iOS: How does one animate to new autolayout constraint (height)
- Auto layout constraints issue on iOS7 in UITableViewCell
- Emulating aspect-fit behaviour using AutoLayout constraints in Xcode 6
- AutoLayout with hidden UIViews?
- UITableView within UIScrollView using autolayout
- How to add Equal Spacing and equal width for button in iOS Auto layout
- Auto layout UIScrollView with subviews with dynamic heights
- When can I activate/deactivate layout constraints?
- Autolayout: Add constraint to superview and not Top Layout Guide?
- UITextView that expands to text using auto layout
- Need assistance setting two buttons of equal width, side by side Autolayout
- Programmatically Add CenterX/CenterY Constraints
- Specifying one Dimension of Cells in UICollectionView using Auto Layout
- iOS ScrollView needs constraint for y position or height
- table header view height is wrong when using auto layout, IB, and font sizes
- Trouble with AutoLayout on UITableViewCell
- AutoLayout, Unable to simultaneously satisfy constraints
- Setting constraints programmatically
- AutoLayout views make app crash on popViewController
- Using autolayout in a tableHeaderView
- When should translatesAutoresizingMaskIntoConstraints be set to true?
- iOS blocks and strong/weak references to self
- Stop UIWebView from “bouncing” vertically?