O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Display Detailed Data

The next step is to allow the user to select an entry in the table and have the full Contact object displayed on the Contact screen.

For the Contact screen to receive a Contact object to display, you need to set up a property to hold the Contact object. Add this line to LMAContactsController.h, along with the other @property declarations:

@property (strong, nonatomic) Contact *contact;

Next, you’ll need to set up a segue from the Prototype cell to the Contact screen.

1. Control-drag from the Prototype cell to the Contact screen and select Selection Segue > Push (see Figure 12.6). This creates a second segue between the two screens.

Figure 12.6 Setting up the navigation from the table view to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required