Adding Landscape

Some apps support only one orientation. However, you will write apps supporting both portrait and landscape. In this section, you add support for rotating between two orientations, in the process learning more about designing and using constraints. You will also add constraints using both VCL and create individual constraints. In an actual project, you would choose which orientations to support and then design the scenes and their constraints before implementing the screens. Here, you get the additional experience of adapting an existing portrait interface to landscape.

The CarValet project is already enabled for both landscape left and right, as you can see in Figure 4-29. Quickly check how the app will appear in landscape ...

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.