开发者

Table View - Remove Cell Opacity

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).

Table View - Remove Cell Opacity

Table View - Remove Cell Opacity

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜