ViewForHeaderInSection is called for each section, but the first UITableView

I have UITableViewand UITableViewControllerwhich is the table view delegate. I have several sections in mine UITableView, and I need to set my own title for the first section. Unfortunately, the override func tableView(tableView: UITableView!, viewForHeaderInSection section: Int) -> UIView!(swift) method is called for each section, but section 0, which is the first sector. All my other UITableViewdelegation methods and datasource work correctly, and I don't have methods that should override this method.

+4
source share
2 answers

From the documentation:

, tableView: heightForHeaderInSection: .

+4

, , , , , 0 . , , , tableView:heightForHeaderInSection:.

0

Source: https://habr.com/ru/post/1547625/


All Articles