所以我必须直接从笔尖文件加载细胞:selectedBackgroundView在自定义的UITableViewCell
NSArray *cellContents = [[NSBundle mainBundle] loadNibNamed:@"ResultsTableViewCell" owner:self options:nil];
cell = [cellContents objectAtIndex:0];
在笔尖文件,有一个UITableViewCell和两个UIViews,每个都有自己的子视图。 Strucuture:
-TableViewCell
Label 1
Label 2
-UIView A
UIView a
UIView b
UIImageView c
UIImageView d
-UIView B
UIView e
UIView f
UIImageView g
UIImageView h
所以UIView的A被连接到backgroundView属性为的UITableViewCell,UIView的B连接到selectedBackgroundView属性。
问题: 因此,为什么A显示了良好的细胞作为它的所有子视图的背景,并且B中的UIImageViews工作正常,但B中的UIViews并不显示,但是我改变了它?谢谢!
我有这个确切的问题。你有没有找到解决方案? – jimmyg