April 2020
Intermediate to advanced
528 pages
15h 40m
English
Often, you want an application’s interface to have a different layout depending on the dimensions and orientation of the screen. In this chapter, you will modify the interface for DetailViewController so that when it appears on a screen that has a relatively small height, the set of text fields and the image view are side by side instead of stacked (Figure 16.1).
Figure 16.1 Two layouts for DetailViewController
The relative sizes of screens are defined in size classes. A size class represents a relative amount of screen space in a given dimension. Each dimension (width and height) is classified as either compact ...
Read now
Unlock full access