Swift 如何去除 TableView 多余的空Cell中的横线

Swift 如何去除 TableView 多余的空Cell中的横线

在使用 UITableViewController 的时候,多余的空 cell 会默认展现不少横线。
如何去除呢?
footerHeight 反一个极小的值就能够了swift

override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    return 0.001
}

结果

compare.png

相关文章
相关标签/搜索