iOS swift5 cell去除分割线 UITableViewCell

  • 去除所有cell的分割线
 tableView.separatorStyle = .none
  • 去除指定cell的分割线
cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: cell.bounds.size.width)

参考博客:
iOS-24-UITableView去除分割线

猜你喜欢

转载自blog.csdn.net/baidu_40537062/article/details/123907766