ashfurrow / ARCollectionViewMasonryLayout

MIT License
185 stars 16 forks source link

NSInternalInconsistencyException: could not dequeue a decoration view of kind: UICollectionElementKindSectionFooter #11

Closed dblock closed 10 years ago

dblock commented 10 years ago

XCode6/iOS8 only, scrolling all the way down in the demo project:

2014-06-10 14:19:47.275 Demo[16513:901601] *** Assertion failure in -[ARCollectionViewMasonryLayout _decorationViewForLayoutAttributes:], /SourceCache/UIKit_Sim/UIKit-3185.20/UICollectionViewLayout.m:1302
2014-06-10 14:19:47.278 Demo[16513:901601] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a decoration view of kind: UICollectionElementKindSectionFooter - must register as a class or nib or connect a prototype in a storyboard'
*** First throw call stack:
(
    0   CoreFoundation                      0x01bb6916 __exceptionPreprocess + 182
    1   libobjc.A.dylib                     0x018548d9 objc_exception_throw + 44
    2   CoreFoundation                      0x01bb67aa +[NSException raise:format:arguments:] + 138
    3   Foundation                          0x014d567c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118
    4   UIKit                               0x007c74ee -[UICollectionViewLayout _decorationViewForLayoutAttributes:] + 974
    5   UIKit                               0x007a4aae -[UICollectionView _createPreparedSupplementaryViewForElementOfKind:atIndexPath:withLayoutAttributes:applyAttributes:] + 469
    6   UIKit                               0x007a62e2 -[UICollectionView _updateVisibleCellsNow:] + 4928
    7   UIKit                               0x007aa36f -[UICollectionView layoutSubviews] + 263
    8   UIKit                               0x00122223 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 601
    9   libobjc.A.dylib                     0x01867763 -[NSObject performSelector:withObject:] + 70
    10  QuartzCore                          0x032b1b87 -[CALayer layoutSublayers] + 152
    11  QuartzCore                          0x032a59e9 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
    12  QuartzCore                          0x032a5844 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
    13  QuartzCore                          0x03206b1e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284
    14  QuartzCore                          0x03207ee4 _ZN2CA11Transaction6commitEv + 392
    15  QuartzCore                          0x032da222 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 470
    16  QuartzCore                          0x032da65f _ZN2CA7Display16TimerDisplayLink8callbackEP16__CFRunLoopTimerPv + 123
    17  CoreFoundation                      0x01b125d6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
    18  CoreFoundation                      0x01b11f5d __CFRunLoopDoTimer + 1309
    19  CoreFoundation                      0x01acf66a __CFRunLoopRun + 2090
    20  CoreFoundation                      0x01aceb7b CFRunLoopRunSpecific + 443
    21  CoreFoundation                      0x01ace9ab CFRunLoopRunInMode + 123
    22  GraphicsServices                    0x02de8500 GSEventRunModal + 192
    23  GraphicsServices                    0x02de833d GSEventRun + 104
    24  UIKit                               0x0009ddee UIApplicationMain + 3727
    25  Demo                                0x0000268d main + 141
    26  libdyld.dylib                       0x064a7ac5 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException