UITableView Header Shows Content Behind It

I have a UITableView with headers on top of a textured background. I want the header to be on top of what they are doing, but I do not want the cells to appear behind when they pass. Here is an example:

UITableView image

New content is the headline. You can see the rows of data below it as they scroll. I cannot set the background of the title because it needs to display the texture from the window behind it. How can I not show the lines under the heading?

+5
source share
2 answers

Basically, you cannot - not excluding the opacity of the headers. The cells are behind the headers, so if you make the headers transparent, the cells are what you see behind them.

+1
source

, UITableCell. . , .

(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

UIImageView. futz Photoshop, , .

0

All Articles