Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming
by Maurice Sharp, Erica Sadun, Rod Strougo
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access