[英]UITableView with transparent background has solid black border
I tried to set up a transparent background on my UITableView
, but I have this black border. 我试图在我的
UITableView
上设置透明背景,但我有这个黑色边框。
(source: hostingpics.net ) (来源: 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. 现在您可以看到tableView背后的背景图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.