UITableView(支持索引的分组表)

重载函数:函数

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

{排序

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

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

    return arr;table

 

}class

相关文章
相关标签/搜索