Take the 2-minute tour ×

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 accessory view's background is changing to gray color(which is default).

Please see this image Cell

Can any one tell the solution for this??

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

You can set the default color or any color you want:

cell.backgroundColor=[UIColor clearColor];


cell.backgroundColor=[UIColor blueColor];
share|improve this answer
Try to avoid [UIColor clearColor] on UITableViewCells as it impacts scroll speed negatively due to the extra blending that needs to be done. –  hypercrypt Oct 7 '11 at 2:56
add comment

Set the background colour of the cell in tableView:willDisplayCell:forRowAtIndexPath:, e.g.:

        cell.backgroundColor = [UIColor blueColor];
share|improve this answer
Fine thank you its working –  MohanVydehi Sep 30 '11 at 9:12
add comment

Your Answer


