重载函数:
-(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;
}
转载于:https://www.cnblogs.com/iOS-Code/p/4705909.html