Message-Based Navigation

So far you have used segues to navigate between scenes, including using the special exit segue. You have some control of passing data and modifying behaviors using prepareForSegue:sender:. Using UINavigationController properties and messages, you have full control. You can do things like push a new view controller to the stack, pop the current view controller, pop to the root-view controller, retrieve the array of view controllers for the current navigation stack, and even rearrange the array of view controllers.

You can use code-based messages to add an about scene to the CarValet app. Instead of adding another scene to the storyboard, you create the interface in a separate user interface resource file. In Xcode, these ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.