-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
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?