ios 索引的设置

#pragma mark 设置索引数

- (NSArray<NSString *> *)sectionIndexTitlesForTableView:(UITableView *)tableView

{

           tableView.sectionIndexBackgroundColor = [UIColor clearColor];//设置背景的颜色

           tableView.sectionIndexColor = MOSTCOLOR;//设置文字的颜色

           NSArray *array = [self.allBrandDic.allKeys sortedArrayUsingSelector:@selector(compare:)];

    return array;

}

posted on 2018-01-25 13:13  开花结果乐园  阅读(242)  评论(0编辑  收藏  举报

导航