标签: ios uitableview scroll alphabetical
我需要帮助实现字母滚动条,例如右侧和联系人应用中的音乐应用。
答案 0 :(得分:1)
这里记录了:Populating an Indexed List
您需要实施tableView:sectionForSectionIndexTitle:atIndex:
答案 1 :(得分: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/