开发者

UITableView with transparent background has solid black border

开发者 https://www.devze.com 2023-03-13 16:16 出处:网络
I tried to set up a transparent background on my UITableView, b开发者_如何学JAVAut I have this black border.

I tried to set up a transparent background on my UITableView, b开发者_如何学JAVAut I have this black border.

UITableView with transparent background has solid black border

(source: hostingpics.net)

Any ideas?


[tableView setOpaque:NO];
[tableView setBackgroundColor:[UIColor clearColor]];


You just have to clear the background color.

tableView.backgroundColor = [UIColor clearColor];

Now you can see the background image behind the tableView.

0

精彩评论

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