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

Populate the Table with Data

A table without data isn’t very exciting, so the next task is to have some data show up in the table. Switch to LMAContactsTableController.m and scroll down until you see several premade methods related to the table. These are all methods that are declared in UITableViewDelegate and UITableViewDataSource. The Table Controller is a subclass of UITableViewController, which conforms to these two protocols, so the template added all the required methods from those protocols.

The system will make calls to the delegate methods as it needs to work with the table, so most of your work in setting up a table is to implement the methods in the two protocols. Throughout the rest of this chapter, you see how to use several of ...

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