Introduction
Welcome
()
What you should know
()
Warming up the simulators
()
Using the exercise files
()
1. Basic Concepts in Auto Layout
Challenge: Planning Auto Layout
()
Solution: Planning Auto Layout
()
Views and frames
()
Why use programmatic Auto Layout?
()
Understand pins, aligns, and sizes
()
Errors in Auto Layout
()
The Auto Layout notation
()
2. Coding Constraints
Challenge: Oatmeal
()
Solution: Oatmeal
()
Basic preparation
()
Pin and size individual constraints
()
Anchors and the safe area
()
Align views
()
Errors in Auto Layout
()
Size views with multipliers
()
Aspect ratio with multipliers
()
3. The Visual Format Language
Challenge: Peanut butter
()
Solution: Peanut butter
()
Prepare for the Visual Format Language
()
Visual Format basics
()
Visual Format pin constants
()
Alignment and multiple constraints
()
Use sizes with Visual Format
()
Metrics, margins, and anchors
()
Errors in Visual Format
()
4. Stack Views
Challenge: Spring rolls
()
Solution: Spring rolls
()
Add a stack view
()
The alignment property and size
()
The distribution property and size
()
Images in stack views
()
Nest stack views
()
5. Advanced Layout
Challenge: Pasta
()
Solution: Pasta
()
Embed subviews
()
Add constraints to subviews
()
Add Visual Format Language to subviews
()
Intrinsic content size
()
Inequalities in constraints
()
Priorities in coded constraints
()
Size ranges in Visual Format
()
6. Size Classes
Challenge: Cake
()
Solution: Cake
()
Why use size classes?
()
Trait collections
()
Determine the size class
()
Dynamic trait changes on iPhone
()
Dynamic trait changes on iPad
()
Dynamic trait changes on iPad (continued)
()
Ex_Files_Auto_Layout_Prog.zip
(172.0 MB)