Swift 如何去除 TableView 多餘的空Cell中的橫線

Swift 如何去除 TableView 多餘的空Cell中的橫線

在使用 UITableViewController 的時候,多餘的空 cell 會默認展現不少橫線。
如何去除呢?
footerHeight 反一個極小的值就能夠了swift

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

結果

compare.png

相關文章
相關標籤/搜索