顏色或失效,重新UITableViewCell的方法,重新設(shè)置背景色
- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated{
UIColor *backgroundColor = self.tagView.backgroundColor;
[super setHighlighted:highlighted animated:animated];
self.yourView.backgroundColor = backgroundColor;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated{
UIColor *backgroundColor = self.tagView.backgroundColor;
[super setSelected:selected animated:animated];
self.yourView.backgroundColor = backgroundColor;
}