0
我有一个具有背景图像的UITableViewController。我设置的图像这样的实现代码如下:iPhone SDK:透明tableviewcell不透明?
[self.view setBackgroundColor: [UIColor colorWithPatternImage:
[UIImage imageWithContentsOfFile:
[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:
@"background1.jpg"]]]];
的问题是,我的每一个定制的tableview细胞得到相同的背景图片 - 这是重复每个单元格。作为一项测试,我尝试将我的单元格中的所有元素都设置为0.0,但尽管如此,尽管我无法看到每个单元格中的任何标签,但我仍然可以在每个单元格中看到重复的背景图像:
cell.backgroundColor = [UIColor clearColor];
cell.contentView.backgroundColor = [UIColor clearColor];
cell.contentView.alpha = 0.0;
cell.alpha = 0.0;
任何有关如何让我的桌子背景图像停止在每个单元格中重复的建议将不胜感激!