mardi 23 juin 2015

Ash Furrow's uicollectionview in uitableview example

I do not quite understand why he needed an index parameter, or what it is used for, in his example:

CGFloat horizontalOffset = scrollView.contentOffset.x;

UICollectionView *collectionView = (UICollectionView *)scrollView;
NSInteger index = collectionView.tag;
self.contentOffsetDictionary[[@(index) stringValue]] = @(horizontalOffset);

I also see people discussing the example. Can someone shed some light?

Discussion that referred the Ash Furrow example

See more ..

Aucun commentaire:

Enregistrer un commentaire