Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6: Indexing, Grouping, and Sorti... > Creating a Simple Indexed Table - Pg. 115

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 6­2. 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.