Remove separator line for only one cell

后端 未结 13 2206
萌比男神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 20:03

    Swift 5 Enjoy

    //MARK:- In which row you want to hide 
    cell.separatorInset = UIEdgeInsets(top: 0, left: CGFloat.greatestFiniteMagnitude, bottom: 0, right: 0);
    

提交回复
热议问题