- (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