UITableView cell个数为0时,仍然显示了分割线
2018-05-11 本文已影响8人
FicowShen
也许你已经尝试了将separatorStyle属性设置为.none,但是问题依旧!
tableView.separatorStyle = .none
好吧,那请将tableView的style改为grouped。
UITableViewStyle.grouped
如果你还配置了tableHeaderView,
那么就将tableFooterView也配置一下:
tableview.tableFooterView = UIView(frame: CGRect.zero)