UITableView(支持索引的分组表)
重载函数:
-(NSArray *) sectionIndexTitlesForTableView: (UITableView *) tableView
{
//dict allKeys取出的key arr无顺序,需进行排序
NSArray *arr = [[self.words allKeys] sortedArrayUsingSelector:@selector(compare:)];
return arr;
}
重载函数:
-(NSArray *) sectionIndexTitlesForTableView: (UITableView *) tableView
{
//dict allKeys取出的key arr无顺序,需进行排序
NSArray *arr = [[self.words allKeys] sortedArrayUsingSelector:@selector(compare:)];
return arr;
}