【发布时间】:2020-10-12 16:25:16
【问题描述】:
I used below lines of code to get rid of the empty UITableview cells 但没有运气。任何帮助表示赞赏。
tableView.tableFooterView = UIView()
tableView.tableHeaderView = UIView()
【问题讨论】:
I used below lines of code to get rid of the empty UITableview cells 但没有运气。任何帮助表示赞赏。
tableView.tableFooterView = UIView()
tableView.tableHeaderView = UIView()
【问题讨论】:
你应该使用nil 而不是 UIView()
tableView.tableHeaderView = nil
【讨论】: