The waterfall (i.e., Pinterest-like) layout for UICollectionView.
MIT License
4.52k
stars
699
forks
source link
crash: request for layout attributes for supplementary view UICollectionElementKindSectionHeader in section 0 when there are only 0 sections in the collection view #198
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'request for layout attributes for supplementary view UICollectionElementKindSectionHeader in section 0 when there are only 0 sections in the collection view' *** First throw call stack: ( 0 CoreFoundation 0x000000011e1e21bb __exceptionPreprocess + 331 1 libobjc.A.dylib 0x000000010c675735 objc_exception_throw + 48 2 CoreFoundation 0x000000011e1e1f42 +[NSException raise:format:arguments:] + 98 3 Foundation 0x00000001184ca877 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194 4 UIKitCore 0x00000001246247c1 -[UICollectionViewData layoutAttributesForSupplementaryElementOfKind:atIndexPath:] + 1180 5 UIKitCore 0x00000001245f8ef3 -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 469 6 UIKitCore 0x00000001245f9aff -[UICollectionView dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:] + 324 7 AKMall 0x00000001102881bb $S6AKMall30SearchResultEcomViewControllerC010collectionE0_33viewForSupplementaryElementOfKind2atSo020UICollectionReusableE0CSo0oE0C_SS10Foundation9IndexPathVtF + 1099 8 AKMall 0x00000001102882ba $S6AKMall30SearchResultEcomViewControllerC010collectionE0_33viewForSupplementaryElementOfKind2atSo020UICollectionReusableE0CSo0oE0C_SS10Foundation9IndexPathVtFTo + 154 9 UIKitCore 0x00000001245e3fb4 -[UICollectionView _createPreparedSupplementaryViewForElementOfKind:atIndexPath:withLayoutAttributes:applyAttributes:] + 556 10 UIKitCore 0x00000001245e81f1 -[UICollectionView _updateVisibleCellsNow:] + 4534 11 UIKitCore 0x00000001245ee076 -[UICollectionView layoutSubviews] + 364 12 UIKitCore 0x000000012527b795 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1441 13 QuartzCore 0x000000011b248b19 -[CALayer layoutSublayers] + 175 14 QuartzCore 0x000000011b24d9d3 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395 15 QuartzCore 0x000000011b1c67ca _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 342 16 QuartzCore 0x000000011b1fd97e _ZN2CA11Transaction6commitEv + 576 17 QuartzCore 0x000000011b1fe6fa _ZN2CA11Transaction17observer_callbackEP19CFRunLoopObservermPv + 76 18 CoreFoundation 0x000000011e146c27 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23 19 CoreFoundation 0x000000011e1410be CFRunLoopDoObservers + 430 20 CoreFoundation 0x000000011e141751 __CFRunLoopRun + 1537 21 CoreFoundation 0x000000011e140e11 CFRunLoopRunSpecific + 625 22 GraphicsServices 0x00000001223271dd GSEventRunModal + 62 23 UIKitCore 0x0000000124d9181d UIApplicationMain + 140 24 Develop 0x000000010b14f667 main + 71 25 libdyld.dylib 0x000000011f466575 start + 1 )