2011-11-13 24 views

回答

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/

+0

那里没有教程! – brainray

+0

@brainray - 看起来像一个走了 - 我更新了链接,仍然存在一个教程。谢谢你让我知道。 – bryanmac