views:

543

answers:

1

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?

+1  A: 

I updated the viewForHeaderInSection method to set the background color of the cell view to gray. Previously, it was transparent white, 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.

Tai Squared