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.
Course info
Rating
(29)
Level
Intermediate
Updated
June 27, 2016
Duration
4h 18m
Table of contents
Description
Course info
Rating
(29)
Level
Intermediate
Updated
June 27, 2016
Duration
4h 18m
Description

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.

About the author
About the author

James Wilson is a Mobile Developer that specializes in iOS. He comes from a background in .NET, but spends the majority of his time in Objective-C, Swift, and iOS.

More from the author
iOS Auto Layout: Adaptive UIs for All Devices
Intermediate
5h 50m
25 Jan 2017
Touch and Motion Events for iOS
Intermediate
4h 38m
24 Mar 2015
Transcript
Transcript

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.