Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
CHAPTER 6: Indexing, Grouping, and Sorting 115 "inner" array, which in turn is stored in an "outer" array that organizes all the sections and groups together. NOTE: If you're using a grouped table, you wouldn't typically use an index. Although there's nothing in Apple's Human Interface Guidelines explicitly prohibiting it, an index does tend to look strange because of the way that it overlaps with the grouped table's background. Creating a Simple Indexed Table Before you dive into the complex stuff, let's take a look at putting together a very simple indexed table, shown in Figure 62. This table consists of a list of names, one for each letter of the alphabet. The names are sorted into sections, and there's an index list for navigation. To keep the example simple, each section has only one name, so there's no need to sort the data for each section. You'll look at sorting the rows in the next section of this chapter.