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.
Hi everyone, my name is James Wilson and welcome to my course iOS Auto Layout: Fundamentals. I am an iOS developer at Rodale Inc.
Auto Layout offers an incredible way to build dynamic interfaces for iPhones and iPads. However, there is also a lot of mystery surrounding the technology.
In this course, we are going to demystify auto layout and give you full control over it so you can build some truly unique interfaces.
Some of the major topics that we will cover include:
In-depth look at constraints, the fundamental building block for Auto Layout.
Building Constraints by using Interface Builder and NSLayoutConstraint.
The Layout Process, and how you can hook into each step.
Controlling how constraints are tied to your own custom views.
Avoiding ambiguous views with Content Hugging and Compression Resistance.
Simplifying the use of Auto Layout by activating constraints, using anchors, or leveraging the UIStackView.
By the end of this course you will have a firm understanding of how Auto Layout works under the hood. This will put you, in control, of Auto Layout.
Before beginning the course you should be familiar with using Xcode and Interface Builder. In addition, the code used in this course is in Swift, but you should at least be comfortable working in Swift, Objective-C, or C# with Xamarin.
I hope you’ll join me on this journey to learn Auto Layout with the iOS Auto Layout: Fundamentals course, at Pluralsight.