- 去除所有cell的分割线
tableView.separatorStyle = .none
- 去除指定cell的分割线
cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: cell.bounds.size.width)
参考博客:
iOS-24-UITableView去除分割线
tableView.separatorStyle = .none
cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: cell.bounds.size.width)
参考博客:
iOS-24-UITableView去除分割线