Using auto layout.
Constraints.
Part2a
Gallery tutorial.