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: ...