- すべてのセルから分割線を削除します
tableView.separatorStyle = .none
- 指定したセルの分割線を削除します
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が分割線を削除