/**
* 点击cell导致子控件颜色消失,如Lable,view 的背景色,在cell 中重写 下面方法
*/
- (void)layoutSubviews
{
[super layoutSubviews];
_selectView.backgroundColor = [self colorWithHexString:@"#ffeb50"];
_lineView.backgroundColor = [self colorWithHexString:@"#646464"];
_listCellLine.backgroundColor = [self colorWithHexString:@"#eceef0"];
}
/**
消除点击动画,可以自定义点击cell的背景颜色
*/
UIView *view = [[UIView alloc]initWithFrame:cell.frame];
view.backgroundColor = [UIColor clearColor];
cell.selectedBackgroundView = view;