Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.


(source: hostingpics.net)

Any ideas?

like image 459
Ostalakar Avatar asked Dec 28 '22 18:12

Ostalakar


2 Answers

[tableView setOpaque:NO];
[tableView setBackgroundColor:[UIColor clearColor]];
like image 134
Rahul Vyas Avatar answered Dec 30 '22 07:12

Rahul Vyas


You just have to clear the background color.

tableView.backgroundColor = [UIColor clearColor];

Now you can see the background image behind the tableView.

like image 41
Rachit Avatar answered Dec 30 '22 06:12

Rachit