Row Selection and UITableViewDelegate

When the user taps a row in the table, the app will display the profile view of the selected frenemy. Lucky for you, the table view notifies its UITableViewDelegate when a row is selected. You hook into this method and then push a new ProfileViewController onto the navigation stack so it slides into view.
When a row is selectable in a table view, it should be indicated using a disclosure indicator (which looks like a right arrow). Later in the chapter, you will add a disclosure indicator to each cell.
To make the rows in your table selectable, add the following code:
A few notes about the preceding code: ...

Get The Complete Idiot's Guide® To iPad and iPhone App Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.