UITableViewCell 选中的状态小技巧

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];
//cell 没被选中时 隐藏这个 _leftImageView
    self.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