FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

UICollectionView received layout attributes for a cell with an index path that does not exist

Open sajadkhan opened this issue 5 years ago • 5 comments

I'm using pagerview in uitableview, in each cell. And I'm getting this error. Can't find similar issue. "UICollectionView received layout attributes for a cell with an index path that does not exist", this is from log.

sajadkhan avatar Feb 08 '19 05:02 sajadkhan

I have facing the same issue. Please look on this issue

premsekar89 avatar Feb 12 '19 08:02 premsekar89

Hi, I am facing same issue, and getting crash related to collectionviewlayoutattributes. Can anyone please help!

avinash-gautam-ios avatar Feb 26 '19 07:02 avinash-gautam-ios

I have facing the same issue frame #2: 0x00000001c7730e74 UIKitCore`-[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 424

yuhaiping avatar Jun 11 '20 01:06 yuhaiping

Did you solve it later?

yuhaiping avatar Jun 11 '20 01:06 yuhaiping

I have facing the same issue -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 428

the problem lies in this part of your code:

guard let imageData = self.dataSource!.pagerView(self, cellForItemAt: index) { return UICollectionViewCell() } You cannot return a UICollectionViewCell without an identifier. you maybe need return a default UICollectionViewCell.

GesanTung avatar Aug 10 '20 08:08 GesanTung