I have an UITableView
(style = UITableView.Style.plain
) with rather simple cells. In IB I set cell's separator inset as custom:
Also, I set table section header as follows:
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let label = UILabel()
label.textAlignment = .center
label.backgroundColor = .white
label.text = "My table section"
return label
}
The result is:
I want to remove separator between "My table section" and "cell 0". How do I fix it?