How do I remove the borders of a UITableView?

后端 未结 6 1256
别跟我提以往
别跟我提以往 2020-12-04 16:39

I have subclassed the UITableView control, and the style is grouped, but I do not need the cell separators. I tried setting my table view\'s separatorStyle to none, but it

6条回答
  •  离开以前
    2020-12-04 16:48

    In a grouped table view, setting separatorStyle doesn't do anything. If you want to hide it, just do the following:

    tableView.separatorColor = [UIColor clearColor];
    

提交回复
热议问题