Issue with custom tableviewcell imageview and accessory view
I'm using customized tableviewcell and adding image view to the cell. When I'm trying to add accessory discloser indicator to that cell, the 开发者_StackOverflow中文版accessory view's background is changing to gray color(which is default).
Please see this image
Can any one tell the solution for this??
Set the background colour of the cell in tableView:willDisplayCell:forRowAtIndexPath:
, e.g.:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.backgroundColor = [UIColor blueColor];
}
You can set the default color or any color you want:
cell.backgroundColor=[UIColor clearColor];
(or)
cell.backgroundColor=[UIColor blueColor];
精彩评论