Remove separator line for only one cell

后端 未结 13 2244
萌比男神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:54

    Swift 4

    iOS 11

    Assign next values for specific cell you need for customization.

    cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, .greatestFiniteMagnitude)
    cell.directionalLayoutMargins = .zero
    

提交回复
热议问题