Latest 0.1.1
Homepage https://github.com/Produkt/PDKTStickySectionHeadersCollectionViewLayout
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit

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

Sample Image

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.

Interface Builder Config

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

  • PDKTStickySectionHeadersCollectionViewLayout is compatible with iOS6.0+
  • PDKTStickySectionHeadersCollectionViewLayout requires ARC.

License

PDKTStickySectionHeadersCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PDKTStickySectionHeadersCollectionViewLayout",
    "version": "0.1.1",
    "summary": "UICollectionView Layout that makes section headers stick to the top of the collection view, over it's section cells.",
    "homepage": "https://github.com/Produkt/PDKTStickySectionHeadersCollectionViewLayout",
    "license": "MIT",
    "authors": "Daniel Garcu00eda",
    "source": {
        "git": "https://github.com/Produkt/PDKTStickySectionHeadersCollectionViewLayout.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "PDKTStickySectionHeadersCollectionViewLayout",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This