0

我需要在右侧的音乐应用程序和联系人应用程序中实现按字母顺序滚动的帮助。

4

2 回答 2

1

它记录在这里:填充索引列表

您需要实现tableView:sectionForSectionIndexTitle:atIndex:

于 2011-11-13T17:54:29.447 回答
0

你需要实现 UITableViewDataSource:

http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UITableViewDataSource_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UITableViewDataSource/sectionIndexTitlesForTableView

具体来说,回调:

-sectionIndexTitlesForTableView:
-tableView:sectionForSectionIndexTitle:atIndex:

本教程涵盖:

http://www.iosdevnotes.com/2011/10/uitableview-tutorial/

于 2011-11-13T17:58:32.050 回答