I have a tableView that has a black background with an opacity of 10%. That is to give it a "boxed" look to separate it from the rest of the view. For some reason, each CELL is also adding a semi-transparent background (visible in the second screenshot) and each string of text is ALSO adding the same thing (this is visible in the screenshot if you look closely enough).
For example, notice around "Sandwich Hot Turkey" how it is darker behind the text than it is to the right of the text.
How do I get rid of that for each cell a开发者_运维技巧nd each string?
Try with cell.textLabel.backgroundColor=[UIColor clearColor];
and cell.detailTextLabel.backgroundColor=[UIColor clearColor];
and try with cell.contentView.backgroundColor=[UIColor clearColor];
to set the content of the cell transparent.
精彩评论