Auto Layout dynamically calculates the size and position of all the
views in your view hierarchy, based on constraints placed on those
views. For example, you can constrain a button so that it is
horizontally centered with an Image view and so that the button’s top
edge always remains 8 points below the image’s bottom. If the image
view’s size or position changes, the button’s position automatically
adjusts to match.This constraint-based approach to design allows you to build user
interfaces that dynamically respond to both internal and external
changes.
Read all about Auto Layout and constraints at Apples Guide here. There are four different sections that will walk you through the approach:
- Understanding Auto Layout
- Auto Layout Without Constraints
- Anatomy of a Constraint
- Working with Constraints in Interface Builder
5
solved Really confused on how constraints work in Xcode [closed]