PDKTStickySectionHeadersCollectionViewLayout
UICollectionView Layout that makes section headers behave like UITableView section headers. Section header views stick to the top of the collection view, over it's section cells.
Install / Use
/learn @Produkt/PDKTStickySectionHeadersCollectionViewLayoutREADME
Description
UICollectionViewFlowLayout subclass that makes section headers behave like UITableView section headers.
Section header views stick to the top of the collection view, over it's section cells.
Sample

Usage
Simply add PDKTStickySectionHeadersCollectionViewLayout.h and PDKTStickySectionHeadersCollectionViewLayout.m files to your project and use it as your UICollectionViewLayout
If you are using Interface Builder to configure your Collection View, simply switch “Flow” to “Custom” at the Layout selector. Then set PDKTStickySectionHeadersCollectionViewLayout as your CollectionView Layout Class.

Notes
PDKTStickySectionHeadersCollectionViewLayout is a UICollectionViewFlowLayout subclass, so you also must confrom the UICollectionViewFlowLayoutDelegate protocol in order to provide the required information about the cells to be drawn.
Compatibility
PDKTStickySectionHeadersCollectionViewLayoutis compatible with iOS6.0+PDKTStickySectionHeadersCollectionViewLayoutrequires ARC.
License
PDKTStickySectionHeadersCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.
Languages
Security Score
Audited on Sep 20, 2024
