My table view doesnt show section 0 header, other sections headers are showing as expected, Any ideas?

 
let headerLabels = ["Assigned", "Not Assigned","Archived"]

func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let headerLabel = UILabel()
headerLabel.textColor = UIColor.white
headerLabel.textAlignment = .center
headerLabel.text = headerLabels[section]
return headerLabel
}

func numberOfSections(in tableView: UITableView) -> Int {
return headerLabels.count
}
You already invited:

Michael

Upvotes from:

Are you setting `tableView:heightForHeaderInSection:`?

If you wanna answer this question please Login or Register