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
}
No any search results
You already invited:
1 Answers
Michael
Upvotes from: