我正在尝试使表格单元格完全透明。我在 iOS 5 中使用静态表格单元格并尝试更改以清除颜色,但确实如此
我什至尝试过(在 viewDidLoad 中)
self.tableView.backgroundColor = [UIColor clearColor];
但是整个表格是黑色的,单元格是白色的。 (见照片)
最佳答案
试试这个
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell
forRowAtIndexPath:(NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor clearColor];
}
关于IOS 5静态tableview单元格没有背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11435316/