开发者

UITableView with transparent background has solid 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜