Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do we need indexPath? #14

Open
burakkilic opened this issue Jan 11, 2017 · 1 comment
Open

Why do we need indexPath? #14

burakkilic opened this issue Jan 11, 2017 · 1 comment
Labels

Comments

@burakkilic
Copy link

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?

@AugustRush
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants