iphone如何让uitableviewcellaccessorydisclosureindicator背景透明?

uni*_*der 4 iphone objective-c transparent uitableview

有人可以向我解释如何在UITableViewCell透明中制作一个uitableviewcellaccessorydisclosureindicator的背景吗?

现在我正面临这个问题:

alt text http://www.bubl3r.com/disclosure.jpg

uni*_*der 5

刚刚找到答案.事实证明它只有3行,并且必须使用透明背景定义我自己的披露指标.png图像:

UITableViewCell *bgView = [[UITableViewCell alloc] initWithFrame:CGRectZero];
    bgView.backgroundColor=indexPath.row % 2? [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1]: [UIColor whiteColor];
    bgView.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"disclosure.png"]];
    cell.backgroundView=bgView; 


    return cell;
Run Code Online (Sandbox Code Playgroud)