Drop-in sticky headers and footers for UICollectionView.
Objective-C Shell Ruby C
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes Selectively add header/footer attributes Sep 23, 2014
Example More smaller cells Aug 20, 2014
Images Add screenshot Aug 21, 2014
LICENSE Add MIT License Aug 20, 2014
MYNStickyFlowLayout.podspec v0.1.2 Sep 23, 2014
README.md Link to published Pod from README Aug 20, 2014

README.md

MYNStickyFlowLayout

Drop-in sticky headers and footers for UICollectionView.

Demo screen recording gif animation

Installation

MYNStickyFlowLayout is available through CocoaPods, to install it simply add the following line to your Podfile:

pod 'MYNStickyFlowLayout'

Alternatively, you can just drag the files from MYNStickyFlowLayout / Classes into your own project.

Usage

To run the example project; clone the repo, and run MYNStickFlowLayout.xcworkspace from the Example directory.

Configure your collection view layout to use MYNStickyFlowLayout. Here's an example on how you to do it in Storyboard.

How to add to Storyboard image

Now all your section headers and footers will get the sticky effect like table view.

Inspiration

Draws heavy inspiration from CSStickyHeaderFlowLayout written by James Tang.

Author

Param Aggarwal, paramaggarwal@gmail.com

License

MYNStickyFlowLayout is available under the MIT license.