Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrolling table overlaps section header

How can you have a UITableView where the header view remains stationary, but the rows don't overlap the section header? With my table, when scrolling the rows, the header is stationary, but when scrolling, the rows slide under the section name. Is it possible to have the rows scroll without going under the section header?

like image 778
Tai Squared Avatar asked Jun 11 '09 23:06

Tai Squared


1 Answers

I updated the viewForHeaderInSection method to set the background color of the view to gray. Previously, it was clear, so the rows appeared to scroll underneath the section header. With the color change, the header remains in place and the rows don't show through.

like image 151
Tai Squared Avatar answered Oct 15 '22 16:10

Tai Squared