SAStickyHeader 0.6.0

SAStickyHeader 0.6.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2016
SPMSupports SPM

Maintained by Shams Ahmed.



SAStickyHeader

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, [email protected]

License

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