Skip to main content
Top

2012 | Book

Pro iOS Table Views for iPhone, iPad, and iPod Touch

insite
SEARCH

About this book

If you’re an iOS app developer, chances are you’ll be using table views in your development projects. Table views are the bread and butter of iOS apps. With them, you can create everything from the simplest of lists to fully tricked-out user interfaces. Table views are also one of the most complex components found in UIKit. While using them for boring standard user interfaces is quite simple, customizing them can become really challenging.

Pro iOS Table Views takes a task-oriented focus to assist you when implementing customized table views. Although it delves deeply into the Table View API, you can always decide in which level of detail you want to dive in. It’s aimed to be a great reference and customization cookbook at the same time, useful for beginners as well as intermediate developers.

Covers the entire Table View API in depth Covers customization and performance topics in depth Task-oriented reference with multiple levels of detail

Note: source code for this title is currently available for download at: https://github.com/timd/Pro-iOS-TableViews

Table of Contents

Frontmatter
Chapter 1. Table Views from the Ground Up
Abstract
In this chapter, you’ll start your exploration of table views. It begins with an overview of what table views are and some examples of how they’re used in practice. Then in the second section, you’ll build a simple “Hello, world”-style table view app to introduce you to the components behind the user interface and help you to contextualize the detail that’s going to come in later chapters.
Tim Duckett
Chapter 2. How the Table Fits Together
Abstract
In this chapter, you’re going to take a whistle-stop tour of table views and the elements from which they’re built. Although this chapter does not present a lot of code, it will provide a useful foundation later, when you start to customize table views.
Tim Duckett
Chapter 3. Feeding Data to Your Tables
Abstract
When working with table views, it’s important to bear in mind that on their own, they are able to do very little. Just as it takes a small army of ground staff (not to mention the flight crew!) to get an airliner off the tarmac and into the skies, so tableViews need the help and support of other objects in order to function properly.
Tim Duckett
Chapter 4. How the Cell Fits Together
Abstract
In this chapter, you’re going to take a detailed look at cells and how they work. In order to be able to customize them, it’s important to understand the anatomy of cells, and how they’re created and reused.
Tim Duckett
Chapter 5. Using Tables for Navigation
Abstract
Navigation controllers are an almost ubiquitous feature of the iOS user interface. They enable a user to manage the navigation through a hierarchy of content, moving through the tree of content items in a simple and consistent way.
Tim Duckett
Chapter 6. Indexing, Grouping, and Sorting
Abstract
Although UITableView is efficient at managing large quantities of data, the user interface is constrained by the physical size of the device. By the time a table displays more than 10 or 12 rows, its labels and controls have become too small to easily work with.
Tim Duckett
Chapter 7. Selecting and Editing Table Content
Abstract
Although some situations can be handled with read-only tables, you don’t need to look too far to find others where tables need to be adaptable. Building tables that can handle selection and rearrangement—and can insert, update and delete new rows—is a common requirement.
Tim Duckett
Chapter 8. Improving the Look of Cells
Abstract
Using UITableView’s built-in standard cell types is a great way to get up and running quickly. But pretty soon you’re going to run up against the limitations of the standard look and feel and want to move beyond the typical layouts.
Tim Duckett
Chapter 9. Creating Custom Cells with Subclasses
Abstract
In Chapter 8, you looked at two of the three main ways of creating and configuring custom UITableViewCells:
  • Adding subviews to the cell’s built-in contentView
  • Creating a custom cell from scratch and instantiating it from a nib file.
Tim Duckett
Chapter 10. Improving the Cell’s Interaction
Abstract
So far, the cells that you have been creating have been relatively static: the user’s interaction with them has been limited to tapping for selection and editing.
Tim Duckett
Chapter 11. Table Views on iPad
Abstract
Table views on the iPad work in exactly the same way as they do on the iPhone. That said, there are a few things to bear in mind when building interfaces for iPad apps.
Tim Duckett
Backmatter
Metadata
Title
Pro iOS Table Views for iPhone, iPad, and iPod Touch
Author
Tim Duckett
Copyright Year
2012
Publisher
Apress
Electronic ISBN
978-1-4302-3349-7
Print ISBN
978-1-4302-3348-0
DOI
https://doi.org/10.1007/978-1-4302-3349-7

Premium Partner