颜色或失效,重新UITableViewCell的方法,重新设置背景色
- (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;
}
网友评论