-(void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
    for (UIView *view in [tableView subviews]) {
        if ([view isKindOfClass:[NSClassFromString(@"UITableViewIndex") class]]) {
            // 设置字体大小
            [view setValue:HFont(13) forKey:@"_font"];
            //设置view的大小
            view.bounds = CGRectMake(0, 0, 30, 30);
            //单单设置其中一个是无效的
        }
    }
    
}

如果修改字体大小,颜色,背景等都无法满足你的需求,这里有一个第三方的,仿微信通讯录样式的右边索引 https://github.com/TalkingJourney/SCIndexView

相关文章:

  • 2021-12-27
  • 2022-01-01
  • 2021-11-22
  • 2021-07-27
  • 2021-08-01
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-11-20
  • 2021-12-27
相关资源
相似解决方案