代码如下,在UITableViewDataSource中设置

- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
{
NSMutableArray *arr = [[[NSMutableArray alloc] initWithCapacity:0] autorelease];
[arr addObject:@"{search}"];//等价于[arr addObject:UITableViewIndexSearch];
return arr;
}

相关文章:

  • 2021-09-28
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2021-08-01
  • 2021-10-07
  • 2022-02-14
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2022-01-09
  • 2021-07-17
相关资源
相似解决方案