O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

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

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:
345
A few notes about the preceding code: ...

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