UICollectionView-ARDynamicHeightLayoutCell icon indicating copy to clipboard operation
UICollectionView-ARDynamicHeightLayoutCell copied to clipboard

Why do we need indexPath?

Open burakkilic opened this issue 9 years ago • 1 comments

Hello;

My code is:

return [collectionView ar_sizeForCellWithIdentifier:@"ItemAllergensCollectionViewCell" indexPath:indexPath fixedWidth:768 configuration:^(__kindof ItemAllergensCollectionViewCell *cell) {
        [cell configureCellWithEntity:self.entity];
    }];

but it crashes because of the indexPath.

 Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM insertObject:atIndex:]: index 2 beyond bounds for empty array'

Why we need indexPath here?

burakkilic avatar Jan 11 '17 19:01 burakkilic

This library use indexPath to organized cache(Just two-dimensional array). It's seems indexPath start from 2 rather than 0 here ?

AugustRush avatar Jan 12 '17 05:01 AugustRush