我试图通过以下操作在 UITableView
上使用平铺背景:tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"gradient_squares.png"]];
但它不会正确显示,因为每个部分都会显示与 UITableView
背景重叠的背景图 block 。
我已经尝试将我的 UITableViewCell
的 backgroundColor 设置为清除颜色,但无济于事。
编辑:添加了屏幕截图和磁贴
最佳答案
这篇文章对我有用:https://stackoverflow.com/a/5480535/294661
在 UIViewController 中设置每个 View 的 backgroundColor 属性。
关于iOS – 带平铺背景的分组 UITableView 显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11662157/