Skip to content

Why do we need indexPath? #14

@burakkilic

Description

@burakkilic

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions