17 Size Classes
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 in Homepwner 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 on top of one another (Figure 17.1).
Figure 17.1 Two layouts for Homepwner’s DetailViewController
Get iOS Programming: The Big Nerd Ranch Guide, 6th Edition 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.