Chapter 3. Displaying Your Data: The UITableView
WHAT'S IN THIS CHAPTER?
Customizing the TableView by creating your own TableView cells
Searching and filtering your result sets
Adding important UI elements to your tables such as indexes and section headers
Avoiding and troubleshooting performance issues with your TableViews
The focus of the book thus far has been on how to get your data on to the iPhone and how to access that data on the device. This chapter focuses on how you can enhance the display of your data by customizing the TableViewCell
. It also examines how to make your data easier to use by adding an index, section headings, and search functionality to the UITableView
. In the next several sections, you take a closer look at how to use the TableView
to display your data in ways that make it more useful to your target audience.
CUSTOMIZING THE TABLEVIEW
You begin by taking a look at the default TableView
styles that are available in the iPhone SDK. Then, you learn the technique of adding subviews to the content view of a TableViewCell
. In the event that neither of these solutions meets your needs for customizing the display of your data, you will examine how to design your own TableViewCell
from scratch using Interface Builder. If you had trouble with IB in the previous chapter, now is a good time to review Apple's documentation on using IB, which you can find at http://developer.apple.com/
.
TableViewCell Styles
Several pre-canned styles are available to use for a TableViewCell ...
Get Professional iPhone® and iPad™ Database Application Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.