Incrementally Adopting Auto Layout
- 简单的resize,不用约束
- Autoresizing masks will translate into constraints at runtime
translatesAutoresizingMaskIntoConstraints == true
- 复杂的用约束
- Autoresizing masks are ignored
translatesAutoresizingMaskIntoConstraints == false
- Incremental Adoption
- Auto Layout + Autoresizing masks
Design and Runtime Constraints
- Placeholder Constraints
- Design Time Intrinsic Size
At runtime,
override var intrinsicContentSize: CGSize
- Turn Off Ambiguity Per View