iOS Auto Layout Fundamentals
In this course, you will learn the fundamentals for Auto Layout on iOS, which will help you to build responsive interfaces that can adjust to multiple form factors on devices like the iPhone and iPad.
What you'll learn
Auto Layout offers an incredible way to build dynamic interfaces for iPhones and iPads. However, there is a lot of mystery surrounding the technology. In this course, iOS Auto Layout: Fundamentals, you will demystify Auto Layout so you can build some truly unique interfaces. First, you will be introduced to the concept of constraints, the various ways you can build constraints, as well as the Interface Builder tools at your disposal for creating and managing constraints. Afterwards, you will learn to build a custom UIView that depends on Auto Layout. By going through this exercise you will learn how Auto Layout works under the hood. This will cover concepts such as the Alignment Rect, Intrinsic Content Size, Content Hugging, and Compression Resistance. Finally, you will be given various tools that will simplify working with constraints such as the UIStackView, NSLayoutAnchor, NSLayoutDimensions, and NSLayoutConstraint Active property. By the end of this course, you will have a firm understanding of working with constraints in Interface Builder and in code. You will understand the lifecycle for constraints giving you the confidence and power to build truly dynamic user interfaces.
Table of contents
- Introduction 3m
- The Rendering Pipeline 2m
- Hooking into the Pipeline 7m
- Setting up the Venn Diagram 6m
- Laying out the Venn Diagram 14m
- Breaking Down the Venn Diagram 4m
- UIViewController: Layout Subviews 3m
- Translates Autoresizing Into Masks 3m
- Autoresizing Mask in Venn Diagram 4m
- Fixing the Venn Diagram 3m
- Summary 2m