Navigating with UINavigationController
Now you have a navigation controller and two view controller subclasses. Time to put the pieces together. The user should be able to tap a row in BNRItemsViewController’s table view and have the BNRDetailViewController’s view slide onto the screen and display the properties of the selected BNRItem instance.
Pushing view controllers
Of course, you need to create an instance of BNRDetailViewController. Where should this object be created? Think back to previous exercises where you instantiated all of your controllers in the method application:didFinishLaunchingWithOptions:. For example, in Chapter 6, you created both view controllers and immediately added them to the tab bar controller’s ...
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