samvermette / SVPullToRefresh

Give pull-to-refresh & infinite scrolling to any UIScrollView with 1 line of code.
http://samvermette.com/314
MIT License
4.82k stars 1.09k forks source link

Pull to refresh on UICollectionView not working #196

Open ninjaphuah opened 10 years ago

ninjaphuah commented 10 years ago

It crashed when users repeatly pulled and refresh the scrollbar. Assertion failure in -[UICollectionViewData layoutAttributesForItemAtIndexPath:], /SourceCache/UIKit/UIKit-2903.2/UICollectionViewData.m:581 2014-04-24 23:52:17.459 LeftMouth[14745:60b] *\ Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no UICollectionViewLayoutAttributes instance for -layoutAttributesForItemAtIndexPath: <NSIndexPath: 0x17f0c250> {length = 2, path = 0 - 30}'

hilen commented 10 years ago

+1