在使用 UITableViewController
的时候,多余的空 cell 会默认展示很多横线。
如何去除呢?
给 footerHeight
反一个极小的值就可以了
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { return 0.001 }
结果
在使用 UITableViewController
的时候,多余的空 cell 会默认展示很多横线。
如何去除呢?
给 footerHeight
反一个极小的值就可以了
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { return 0.001 }
结果