【发布时间】:2018-02-16 00:17:03
【问题描述】:
我想在 TableView 中删除这一行。
我用
tableView.tableFooterView = UIView(frame: CGRect.zero) ,
tableView.tableFooterView?.isHidden = true,
tableView.tableFooterView = nil`,
tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.size.width, height: 1))`,
将样式表视图设置为分组并将分隔符设置为无是行不通的。
【问题讨论】:
-
设置 tableView.tableFooterView = nil
-
tableview 分隔符,见stackoverflow.com/questions/8561774/…
-
你可以试试这个,
tableview.separatorStyle = .none -
tableView.tableFooterView.backgroundColor = UIColor.whiteColor()
标签: ios swift uitableview