Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

USING THE TABLE VIEW IN A MASTER-DETAIL APPLICATION

In the previous sections, you created a Single View Application project, manually added a Table view to the View window, connected the data source, and delegated to the File's Owner item. You then handled all the relevant events defined in the two protocols — UITableViewDelegate and UITableViewDataSource, so that you could populate the Table view with items and make them selectable.

In real life, the Table view is often used with a Master-Detail (previously known as the Navigation-based Application) project because users often need to select an item from a Table view and then navigate to another window showing details about the item selected. For this reason, the Master-Detail Application template in the iOS SDK by default uses the UITableView class instead of the UIView class. This section demonstrates how to use a Table view from within a Master-Detail Application project.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book