Modal Navigation

We’ll close out the chapter with a different approach for presenting view controllers, and how it ties into one of the neatest things about navigating through storyboards.

In the tweet detail controller, we used a button rather than an image view to present the user’s icon, and this is where we’re going to use that: we’ll allow the user to tap the icon to go to a third view controller, one that presents details about the user.

Modal Segues

Add another view controller to the storyboard, to the right of the tweet detail view controller (again, it may be necessary to zoom out to organize the views nicely). Scroll so that both the tweet detail view controller and the new view controller are visible at the same time, and Control-drag ...

Get iOS 9 SDK 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.