Is there a way to remove the separator line from a UITableView?

后端 未结 9 2096
深忆病人
深忆病人 2020-11-29 01:00

I\'m looking for a way to completely remove the separator line in a UITableView when in the plain mode. This is done automatically in grouped, but this also changes the dime

9条回答
  •  佛祖请我去吃肉
    2020-11-29 01:29

    In interface Builder set table view separator "None"

    and those separator lines which are shown after the last cell can be remove by following approach. Best approach is to assign Empty View to tableView FooterView in viewDidLoad

    self.tableView.tableFooterView = UIView()

提交回复
热议问题