iOS: CellForRowAtIndexPath cells are getting mixed up

前端 未结 3 1636
走了就别回头了
走了就别回头了 2021-01-06 02:53

Going to start off by saying I\'ve seen these questions:

iOS: UITableView mixes up data when scrolling too fast

(custom) UITableViewCell's mixing up afte

3条回答
  •  别那么骄傲
    2021-01-06 03:08

    Adding an else solved my problem. Where I reseted any changes that were made to the cell.

    if (! self.cell) {
    
    self.cell = [[LanguageCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
    
    self.cell.accessoryType = UITableViewCellAccessoryNone;
    }
    else {
    self.cell.checkImage.image = NO;
    
    }
    

提交回复
热议问题