/SAStickyHeader

A very simple sticky header with multiple image support via swipe gestures

Primary LanguageSwiftMIT LicenseMIT

SAStickyHeader

[![CI Status](http://img.shields.io/travis/Shams Ahmed/SAStickyHeader.svg?style=flat)](https://travis-ci.org/Shams Ahmed/SAStickyHeader) Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Screenshot

Platform

Installation

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

pod "SAStickyHeader"

Instruction

let images = [UIImage(named: "gracehoppertocat"), UIImage(named: "hipster-partycat")]
        
tableView.tableHeaderView = SAStickyHeaderView(frame: CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 400), table: tableView, image: images)

Add SAStickyHeaderView in viewDidLoad or in viewForHeaderInSection tableView delegate method, pass the frame, current table and a array of images.

Author

Shams Ahmed, shamsahmed@me.com

License

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