也许你已经尝试了将separatorStyle属性设置为.none,但是问题依旧!
tableView.separatorStyle = .none
好吧,那请将tableView的style改为grouped。
UITableViewStyle.grouped
如果你还配置了tableHeaderView,
那么就将tableFooterView也配置一下:
tableview.tableFooterView = UIView(frame: CGRect.zero)
也许你已经尝试了将separatorStyle属性设置为.none,但是问题依旧!
tableView.separatorStyle = .none
好吧,那请将tableView的style改为grouped。
UITableViewStyle.grouped
如果你还配置了tableHeaderView,
那么就将tableFooterView也配置一下:
tableview.tableFooterView = UIView(frame: CGRect.zero)
本文标题:UITableView cell个数为0时,仍然显示了分割线
本文链接:https://www.haomeiwen.com/subject/gbgxdftx.html
网友评论