iOS点击cell时,控件背景色消失的解决方法
同时调用一下两个方法:
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; self.quickProfessionLabel.backgroundColor = UIColorFromRGB(0xce0f32); self.quickUnReadLabel.backgroundColor = UIColorFromRGB(0xce0f32); } - (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated { [super setHighlighted:highlighted animated:animated]; self.quickProfessionLabel.backgroundColor = UIColorFromRGB(0xce0f32); self.quickUnReadLabel.backgroundColor = UIColorFromRGB(0xce0f32); }