iOS – 带平铺背景的分组 UITableView 显示不正确

标签 ios uitableview background-image

我试图通过以下操作在 UITableView 上使用平铺背景:tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"gradient_squares.png"]];

但它不会正确显示,因为每个部分都会显示与 UITableView 背景重叠的背景图 block 。

我已经尝试将我的 UITableViewCell 的 backgroundColor 设置为清除颜色,但无济于事。

编辑:添加了屏幕截图和磁贴

enter image description here

enter image description here

最佳答案

这篇文章对我有用:https://stackoverflow.com/a/5480535/294661

在 UIViewController 中设置每个 View 的 backgroundColor 属性。

关于iOS – 带平铺背景的分组 UITableView 显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11662157/

相关文章:

ios - 在 Swift 中循环遍历枚举值

swift - 如何调整或删除分组的 tableView 标题大小

ios - 调整 TableView 单元格高度会影响最后一个单元格时的尾随空单元格

ios - 将 UITableView 捕获为图像 - 滚动

html - 全 Angular div 中的多种背景颜色和图像

ios - 我想在 IOS 中只显示一次登录屏幕

ios - 关于在itunes商店上提交应用程序

ios - 如何在 Swift 的 Alert 中为按钮添加 Action

javascript - Highcharts 背景和其他组件无法正常工作

html - 你能把一个 CSS <header> 元素变成一个链接吗?