O'Reilly logo

Mastering iOS 11 Programming - Second Edition by Donny Wals

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adjust the bottom section for small screens

The layout we have so far looks pretty good on the iPad. However, it's just too cramped on the iPhone in the portrait mode. Let's create some room by changing it to a single column layout. First, select iPhone view and click on the Vary for Traits button. This time, make sure that you only vary for the width.

The easiest way to pull off a change this big is to rearrange the view first without modifying the constraints yet. Rearrange the views so they look as shown in the following screenshot:

Then, it's a good idea to add constraints that you know are missing. This isn't always straightforward but ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required