Beginning Auto Layout
Auto Layout lets you create layouts to handle different screen sizes and orientations. This series walks you through the basics of layouts in Interface Builder. While the subject matter is complex, it is designed for beginners and assumes no knowledge of Auto Layout. By Jerry Beers.
Learn the basics of Auto Layout, get familiar with the various Xcode tools at your disposal, and see how to save yourself time and frustration with your layout tasks.
Autoresizing masks define the relationship between a view and its superview. Learn how autoresizing masks work, and when to use them.
Stack Views are powerful layout tools that let you create simple to extremely complex layouts, in a minimum of time.
Learn how various UI elements can have a preferred size, based on the content, and how this affects your layouts.
Stack views can contain other stack views, which lets you create complex, flexible layouts. You’ll learn how to make nested stack views play nicely with each other.
Constraints are the “building blocks” of Auto Layout. Learn what they are, and when to choose them over autoresizing masks or stack views.
There are several ways to create constraints in Xcode — explore the most common ways and see how constraints affect your layouts.
Now that you’ve created constraints, learn how to edit them to add more complex arrangements — or even delete constraints altogether.
Recap what you’ve learned in this series, check out a few Auto Layout tips, and get a preview of the Mastering Auto Layout series!