修改 UITableView 的 HeaderView、Foot
作者:
冰霜海胆 | 来源:发表于
2017-05-24 18:01 被阅读209次// 修改 HeaderView 背景颜色
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
view.tintColor = UIColor.clear
(view as! UITableViewHeaderFooterView).textLabel?.textColor = UIColor.readBlack
}
// footer View 同理
func tableView(_ tableView: UITableView, willDisplayFooterView view: UIView, forSection section: Int) {
}
本文标题:修改 UITableView 的 HeaderView、Foot
本文链接:https://www.haomeiwen.com/subject/sauoxxtx.html
网友评论