In my cellForRowAtIndexPath
method, I have this code:
if ([self.cellImageCache objectForKey:indexPath]) {
UIImage *image = [self.cellImageCache objectForKey:indexPath];
[cell.entryView setImage:image];
return cell;
}
Entry *entry = [self.appDelegate.fetchedResultsController objectAtIndexPath:indexPath];
UIImage *image = [JTimelineCellContent imageForEntry:entry];
[cell.entryView setImage:image];
[self.cellImageCache setObject:image forKey:indexPath];
When I scroll to the bottom of the tableview, each cell displays fine. Upon scrolling back up, cells display fine too. But when I begin scrolling down after scrolling up, cells begin to appear repeated.
Every NSLog search I do for index paths returns the correct value, even on repeated cells.