ARCollectionViewMasonryLayout
ARCollectionViewMasonryLayout copied to clipboard
Why the layout is asking for a reusable view for kind `ARCollectionElementKindSectionStickyHeader` if I never registered it to my collection or implemented the `- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForStickyHeaderInSection:(NSInteger)section;` method?
Opening and running `Demo.xcodeproj` returns the following error. 
Currently requires bundler and cocoapods, neither of which is specified in the readme. Checking in the Pods directory would probably be the easiest thing.
https://github.com/ashfurrow/ARCollectionViewMasonryLayout/blob/18484232f5a68ed70d22a1a2752762ae8b20ec89/_ARCollectionViewMasonryAttributesGrid.m#L170 ``` 2016-02-20 12:00:17.462 EmbedInExistingNavigationStack[49301:19970305] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [288.5 nan]' ```
Something that would sit under the header, but then will scroll until it's at the top. Could also provide a callback for when the view is 'stuck'.
[This line](https://github.com/AshFurrow/ARCollectionViewMasonryLayout/blob/073ce24491964ca87992d2c099af51b23f8e47c7/ARCollectionViewMasonryLayout.m#L379) is problematic, since `count` returns a `NSUInteger`, `count - 1` yields 18446744073709551615 on a 64 bit processor.