O'Reilly logo

iOS 5 Programming Pushing the Limits: Developing Extraordinary Mobile Apps for Apple iPhone, iPad, and iPod Touch by Mugunth Kumar, Rob Napier

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

Chapter 5: Getting Table Views Right

Table views are arguably the most ubiquitous and often used control on the iOS platform. Most of the quality apps on the App Store use table views, and not just for showing a hierarchical list of data. They are also used for complex structured, scrollable views. Table views are used as cheap substitute for creating vertically scrollable views even if the content they display is not a list of data. For example, in the built-in contacts app, the contacts list is a UITableView but so is the view for adding a new contact. Additionally, new interaction patterns have been introduced by third-party application developers, and have been quite commonly used on other apps as well.

iOS has been around for four years, so this chapter assumes that you are well versed with concepts like UITableViewDelegate and UITableViewDataSource.

If you are not familiar with UITableViewDelegates and UITableViewDataSource, read Chapter 8 in Beginning iPhone Development: Exploring the iPhone SDK by Dave Mark and Jeff Lamarche (Apress 2009, ISBN 978-1430216261) before finishing this chapter.

This chapter focuses on the advanced aspects of table views and shows you how to create complex (yet common) UIs like Pull-To-Refresh and infinite scrolling lists. It also briefly explains how to use table view row animations to create accordions or options drawers (a UI that shows available toolbar elements just below the table view cell that is acted upon) and several other interesting ...

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