Remove separator line for only one cell

后端 未结 13 2107
萌比男神i
萌比男神i 2020-12-30 19:38

I\'m trying to remove the separator for one UITableViewCell. I did the following:

- (UITableViewCell *)tableView:(UITableView *)tableView cellFo         


        
13条回答
  •  时光说笑
    2020-12-30 19:53

    You can just visually hide separator through separatorInset property:

    tableViewCell.separatorInset = UIEdgeInsets(top: 0, left: 10000, bottom: 0, right: 0)
    

提交回复
热议问题