简体   繁体   English

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

[英]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.

相关问题 iOS 8上的UITableView背景黑色和空白单元格为黑色 - UITableView background black and empty cells black on iOS 8 两个 UITableView 单元格/部分之间的黑色边框 - Black border between two UITableView cells/sections iOS 8黑色背景,而不是透明单元格背景 - iOS 8 Black background instead of transparent cell background iOS 5.1: - [UIColor colorWithPatternImage:]背景颜色绘制纯黑色 - iOS 5.1 : -[UIColor colorWithPatternImage:] background color draws solid black 在带有黑色背景的NSWindow中绘制透明的NSView - Drawing a transparent NSView in NSWindow with black background 如何为UITableView和UISearchBar创建透明背景 - How to create Transparent background for UITableView and UISearchBar 当(以编程方式)放置在UINavigationControl中时,围绕UITableView出现不必要的(透明)“边界” - unwanted (transparent) “border” around UITableView when (programmatically) placed in UINavigationControl UITableView背景有奇怪的行为 - UITableView background has weird behavior 如何为UITableView中的选定单元格设置透明背景 - How can I make a transparent background for selected cells in UITableView 带有iOS7的iPad上具有透明背景的UITableView / UITableViewCell挑战 - UITableView / UITableViewCell challenge with transparent background on iPad with iOS7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM