【发布时间】:2017-11-07 01:44:35
【问题描述】:
【问题讨论】:
标签: ios swift xcode uitableview cocoa-touch
【问题讨论】:
标签: ios swift xcode uitableview cocoa-touch
使用UITableView方法sectionIndexColor和sectionIndexBackgroundColor
示例
tableView.sectionIndexColor = UIColor.red
tableView.sectionIndexBackgroundColor = UIColor.clear
【讨论】:
您只需访问 UITableView
的 sectionIndexColor 方法yourTableviewName.sectionIndexColor = UIColor.yourDesiredColor
yourTableviewName.sectionIndexColor = UIColor.red // as Example i have used red color
【讨论】: