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.
Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.