iOS swift5 cell removes dividing line UITableViewCell

  • Remove dividing lines from all cells
 tableView.separatorStyle = .none
  • Remove the dividing line of the specified cell
cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: cell.bounds.size.width)

Reference blog:
iOS-24-UITableView removes the dividing line

Guess you like

Origin blog.csdn.net/baidu_40537062/article/details/123907766