How to create a UITableViewCell background with transparent buttons

In IB, on .xib, where the file owner is a subclass of UITableViewController, the cell structure I want to load from xib:

(UITableViewCell) cell -> (UIView) View -. > (UIButton) but1, but2, but3

I am trying to make the buttons appear in the table without the frame / background of the cell.

I created a cell background and my clearColor background, but now I get a black background in the cell (with rounded corners), for example:

alt text

Due to the striped nature of the background of the table, if I select the same background for the cell, then the stripes will not align perfectly, so this is unacceptable. I just need a damn cell to be translucent, I don’t know where the black color comes from.

Any ideas?

+3
1

. , , - :

UIView *backView = [[UIView alloc] initWithFrame:CGRectZero];
backView.backgroundColor = [UIColor clearColor];
cell.backgroundView = backView;
[backView release];

:

alt text

+10

All Articles