[self setSelected: (NSArray *)selRow.subviews CellColor:[UIColor whiteColor]];
- (void)setSelected:(NSArray *)views CellColor:(UIColor *)CellColor
{
for(UIView *vi in views)
{
vi.backgroundColor=CellColor;
[self setSelected:vi.subviews CellColor:CellColor];
}
}
看很多的人给的建议都不奏效,写了这个递归管用