UITableView(支持索引的分组表)

重载函数:

-(NSArray *) sectionIndexTitlesForTableView: (UITableView *) tableView

{

    //dict allKeys取出的key arr无顺序,需进行排序

    NSArray *arr = [[self.words allKeys] sortedArrayUsingSelector:@selector(compare:)];

    return arr;

 

}

posted @ 2015-08-05 21:33  一只简单的码农  阅读(94)  评论(0编辑  收藏  举报