swift3でTable Viewのセルの背景色を変える方法
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
cell.contentView.backgroundColor = UIColor.yellow
}
結果
参考
iOS Swift – How to change background color of Table View?