索引背景颜色:
tableView.sectionIndexBackgroundColor = [UIColor clearColor];
设置索引的颜色
tableView.sectionIndexColor = [UIColor redColor];
本文介绍了如何使用Swift为UITableView设置索引背景颜色及索引颜色。通过简单的代码示例,展示了如何将索引背景设为透明,并将索引颜色设为红色。
索引背景颜色:
tableView.sectionIndexBackgroundColor = [UIColor clearColor];
设置索引的颜色
tableView.sectionIndexColor = [UIColor redColor];
4663
309万+

被折叠的 条评论
为什么被折叠?