Summary

Auto layout minimizes the amount of work and code you need for creating interfaces that adapt to different screen sizes and orientations. You can use the techniques you learned here in every app you write.

In this chapter, you used auto layout to adapt your app to different screen sizes and orientations. You designed the constraints with a method you can use in any application. As part of the method, you learned how to use grouping views and hierarchies to minimize the work of adapting layouts. You also learned how to tell if a set of constraints is complete. You used the design to create constraints in IB, again using the idea of hierarchy and groups to make implementation easier.

When you added landscape, you created constraints in ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.