Problem with transparent color UITableView

I have a table view in a grouped style. When I set the background color of the table to clear the color, I see dark black corners around the table. Is there a way to solve this problem and remove those dark corners?

Any help would be appreciated.

+4
source share
2 answers

Along with using clearColor use the following:

 [tableView setBackgroundView:nil]; [tableView setBackgroundColor:[UIColor clearColor]]; [tableView setOpaque:NO]; 
+9
source

You can set the UIView and set it to pure color. This works for me.

 UIView *backView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease]; backView.backgroundColor = [UIColor clearColor]; cell.backgroundView = backView; 
+1
source

Source: https://habr.com/ru/post/1336096/


All Articles