- (void)setSelected:(BOOL)selected animated:(BOOL)animated {[super setSelected:selected animated:animated]; //cell 没被选中时 隐藏这个 _leftImageViewself.leftImageView.hidden = !selected; //选中text变红 不然变灰色self.textLabel.textColor = selected ? [UIColor redColor] : [UIColor grayColor];// Configure the view for the selected state }
下面的截图中 设置后 cell 被选中了 也不会进入高亮状态
转载于:https://www.cnblogs.com/arenouba/p/5414822.html