慕桂英4014372
您可以使用以下代码:斯威夫特:if indexPath.row == {your row number} { cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: .greatestFiniteMagnitude)}要么 :cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, UIScreen.main.bounds.width)对于默认保证金:cell.separatorInset = UIEdgeInsetsMake(0, tCell.layoutMargins.left, 0, 0)端到端显示分隔符cell.separatorInset = .zero目标C:if (indexPath.row == {your row number}) { cell.separatorInset = UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, CGFLOAT_MAX);}