How to make the blue panel on top disappear for tttableview with a list of data (the program runs on ios 5 beta)

A blue bar appears at the top of my tttableview when the program runs on ios 5 beta, it wasn’t there if I run the program on ios 4.3. The table is configured to use a list data source. Does anyone know what the problem is? Is tableview api changed somehow for ios 5? Thanks.

+6
source share
2 answers

This is caused by a subtle but important change that Apple has made in the behavior of the UITableView for section headers and footers. If you implement the tableView: viewForHeaderInSection: or tableView: viewForFooterInSection: delegate method, then you MUST also implement the tableView: heightForHeaderInSection: and tableView: heightForFooterInSection: delegate methods.

The additional header of the empty section that you see is called by returning "nil" from the methods "... viewFor ...", but does not return 0 from the methods "... heightFor ...".

+5
source

Pull the latest code from the Three20 git repository on github. They fixed this issue with tttableview.

See this page https://github.com/facebook/three20/issues/643

+1
source

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


All Articles