I am attempting to update a single cell inside a UICollectionView
, specifically I am just trying to update an image in that specific cell detonated by cell.imageView
. [self.collectionView reloadData]
is not really an option because it makes the whole collection view flash. [self.collectionView beginUpdates]
is not a thing in a UICollectionView
it seems.
I understand I may be able to use:
[self.collectionView performBatchUpdates:^{
//do something
} completion:nil];
I am not exactly sure what to put inside a completion block to update that certain cell's imageView
. This is all being done inside of didSelectItemAtIndexPath
.Also I am not using NSFetchedResultsController
. Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…