我想让分组的 UITableView 透明。我通过以下代码部分成功:
UIColor *bgColor = [[UIColor alloc] initWithWhite:1 alpha:0.0];
historyTable.backgroundColor = bgColor;
不幸的是,圆形单元格中出现了黑角。如何摆脱它们?
最佳答案
而不是使用
UIColor *bgColor = [[UIColor alloc] initWithWhite:1 alpha:0.0];
historyTable.backgroundColor = bgColor;
只需使用:
historyTable.backgroundColor = [UIColor clearColor];
这也清除了您所创建的内存泄漏。
关于iphone - 分组 UITableView 中的透明背景 - iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2396250/