在使用 UITableViewController 的時候,多余的空 cell 會默認展示很多橫線。
如何去除呢?
給 footerHeight 反一個極小的值就可以了
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { return 0.001}結果

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持武林網。
新聞熱點
疑難解答