My UITableView spans the the size of the iPhone view, with a tableHeaderView holding additional content. Wanting the header to be clear and the rest of the table white, I set the background colour of the table to clear, and inside the view delegate method -(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
I set the cell's background to white.
This takes care of the cells with content, but there's now another problem: data for my table doesn't extend to the bottom, so there are a number of cell spaces that are clear.
I'm just looking for a clear tableHeaderView and white cells. Am I approaching this wrong? Setting the table background to white and the headerView to clear doesn't solve it.