Grouped UITableview remove outer separator line

前端 未结 19 2234
遇见更好的自我
遇见更好的自我 2020-12-02 10:58

I have a grouped UITableview which is created programatically. Also I have a cell with xib file populated in tableview programmatically as well. So far so good. But I want t

19条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 11:35

    Tried various solutions based on the cell.separatorInset = UIEdgeInsetsMake() workaround, none of them working properly.

    For my iOS11 UITableViewStyleGrouped based project, this did it:

    self.tableView.separatorColor = self.tableView.backgroundColor;
    

提交回复
热议问题