I need to know when reloading a UICollectionView has completed in order to configure cells afterwards (because I am not the data source for the cells - other wise would have done it already...)
I've tried code such as
[self.collectionView reloadData];
[self configure cells]; // BOOM! cells are nil
I've also tried using
[self.collectionView performBatchUpdates:^{
[self.collectionView reloadData];
} completion:^(BOOL finished) {
// notify that completed and do the configuration now
}];
but when I reload the data I am getting crashes.
How can I reload the data into the collection, and only when it has finished reloading - do a particular completion handler
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…