How to color tableviewcell area by index panel?

in one of my applications, I use alternating colors for my tables. Tableview has an index bar that allows you to quickly scroll.

However, now my cells are "cropped" - the area behind the index line is not colored, although the title is displayed behind the index letters. Thus, I believe that this is not a problem because the indicator panel is not transparent, but most of the table views are too short or something like that.

Here's what it looks like right now:

enter image description here

Obviosly . tableviewcells, , backgroundview. , ( ).

!

Edit:

, . , , .

+3
1

:

UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, cell.frame.size.width, cell.frame.size.height)];
bgView.backgroundColor = [UIColor greenColor];
cell.backgroundView = bgView;
[bgView release];

, , , cell.backgroundView.backgroundColor...

-

+2

All Articles