StickyViews
StickyViews copied to clipboard
How to not float Footer view
Is there a way to make the footer view not push up the header view of a section? So the footer goes under the Header, just like the collection view cells do?
@cannyboy If you just comment the lines that update the footer's attributes that will cause the footer for the section to behave as UICollectionViewFlowLayout originally treats it's footer. Does that answer your question?
Just comment out the calls to updateFooterAttributes: in MyLayout.m.
You should also comment out the following lines in layoutAttributesForElementsInRect: of MyLayout.m.
if (!footerFound) {
[allItems addObject:[self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionFooter atIndexPath:[NSIndexPath indexPathForItem:[allItems count] inSection:0]]];
}