Objective c 透明背景的UITableView具有纯黑边框

Objective c 透明背景的UITableView具有纯黑边框,objective-c,ios,cocoa-touch,uitableview,Objective C,Ios,Cocoa Touch,Uitableview,我试图在我的UITableView上设置一个透明背景,但我有一个黑色边框 (来源:) 有什么想法吗?你只需清除背景色即可 [tableView setOpaque:NO]; [tableView setBackgroundColor:[UIColor clearColor]]; tableView.backgroundColor = [UIColor clearColor]; 现在您可以看到tableView后面的背景图像

我试图在我的
UITableView
上设置一个透明背景,但我有一个黑色边框


(来源:)


有什么想法吗?

你只需清除背景色即可

[tableView setOpaque:NO];
[tableView setBackgroundColor:[UIColor clearColor]];
tableView.backgroundColor = [UIColor clearColor];
现在您可以看到tableView后面的背景图像