// 右边索引的标题数组
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
{
NSMutableArray *array = [NSMutableArray array];
for(int section='A';section<='Z';section++)
{
[array addObject:[NSString stringWithFormat:@"%c",section]];
}
return array;
}
// 自定义索引与数组的对应关系
- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index
{
return (index+1==26)?0:(index+1);
}

相关文章:

  • 2021-07-04
  • 2022-12-23
  • 2021-09-30
  • 2021-09-21
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-01-12
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案