Silver Challenge: Layout Guides

If you rotate into landscape, the nextQuestionLabel becomes visible. Instead of hardcoding the spacing constraint’s constant, use an instance of UILayoutGuide to space the two labels apart. This layout guide should have a width constraint equal to the ViewController’s view to ensure that the nextQuestionLabel remains offscreen when not animating.

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.