Cover by Joe Conway, Aaron Hillegass

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Master-Detail Communication

In Chapter 13, we discussed different options for allowing view controllers to send messages to each other. Using instance variables is the simplest option, and that’s what we’ve done in Nerdfeed – we gave the ListViewController a pointer to the WebViewController. In this simple application, this approach works fine. Now let’s make Nerdfeed a little more complex and write a delegate protocol instead.

Right now, the detail view controller displays the WebViewController when a row in the master view controller is selected. In a moment, you’re going to create another view controller called ChannelViewController that will display metadata about the RSS feed. You will also create an Info button on the ListViewController ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required