我有backgroundColor属性设置像这样一个UITableView:的UITableView与滚动的背景图案
tableview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"IMAGE"]];
这给实现代码如下一个背景,那卷轴,这正是我想要的。
的问题是,当我添加细胞对tableview
,每个单元中的tableview
开始的背景图案新 /重新开始:
在上述图像中,可以看到红圈区域的问题。
对于tableview
细胞,我已经将所有backgroundColors
到clearColor
为
- backgroundView
- 为textLabel
- detailedTextlabel
- 内容查看
我也曾尝试设置
cell.backgroundView = [UIView new];
cell.backgroundView.backgroundColor = [UIColor clearColor];
和contentView一样。
附加说明: 设置tableview的backgroundView并没有帮助,因为那时背景不再滚动!
这对我来说很重要复制的细胞,其背景图案滚动,在滚动的tableview时。采用这种方法它不会! – 2013-04-05 20:50:11