美文网首页
UITableViewStyle.grouped 时, 头部默认

UITableViewStyle.grouped 时, 头部默认

作者: 冉俊 | 来源:发表于2017-11-06 13:58 被阅读29次

UITableViewStyle.grouped 时, 头部默认高度

<font color=red size=5>注意代码顺序</font>

self.backgroundColor = backgroundColorGray
self.separatorColor = self.backgroundColor
self.dataSource = self
self.delegate = self
self.tableFooterView = UIView()
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
        return 270
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
        return 0.001
}

相关文章

网友评论

      本文标题:UITableViewStyle.grouped 时, 头部默认

      本文链接:https://www.haomeiwen.com/subject/ojllmxtx.html