Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UICollectionView willDisplayCell delegate method?

Anyway to hack into UICollectionView to call willDisplayCell delegate method, when displaying cell?

I need this for lazy loading, and I'm doing it nice with UITableView, but officially UICollectionView doesn't have that kind of delegate method.

So, any ideas? Thanks!

like image 600
Devfly Avatar asked Nov 05 '12 17:11

Devfly


1 Answers

FYI, This has been added to the API for iOS 8:

- (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath NS_AVAILABLE_IOS(8_0);
like image 63
Eli Burke Avatar answered Nov 01 '22 11:11

Eli Burke