The Label System
Now for the labels inside the billboard. The constraints Interface Builder gave you cascade, but its choices aren’t perfect. Our task now is to make sure the cascade reflects what we intend.
Start from the layout in Figure 12.1. I’d like the layout to be about the same in portrait, but in landscape, I’d like it to take advantage of the whole width of the billboard.
My concern is how the billboard lays out in landscape orientation, so let’s work for a while in landscape. Select the Game List Controller (the yellow icon in the black bar below the scene) and the Attribute inspector (fourth tab). The first items in the attributes for a view controller, Simulated Metrics, control the geometry of the view: whether to make room for ...
Get Xcode 5 Start to Finish: iOS and OS X Development 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.