Latest 2.0.0
Homepage https://github.com/yageek/StickyHeader
License MIT
Platforms ios 8.0
Authors

MIT License
Carthage compatible
CocoaPods Compatible
Platform

Simple library based on work done on MXParallaxHeader helping to
create a sticky header for an UIScrollView.

Demo

Installation

CocoaPods

pod "StickyHeader"

Carthage

github "yageek/StickyHeader"

Usage

To add a sticky header:


// Create the header
let view = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 100))
view.backgroundColor = UIColor.blueColor()
view.translatesAutoresizingMaskIntoConstraints = false

// Add the header to the table view
self.tableView.stickyHeader.view = self.headerView
self.tableView.stickyHeader.height = 200
self.tableView.stickyHeader.minimumHeight = 100

Changelog

  • 2.0.0: Swift 3. compatible.
  • 1.0.1: Swift 2.3 compatible.
  • 1.0.0: First release.

License

StickyHeader is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "StickyHeader",
    "version": "2.0.0",
    "summary": "Library helping to add a sticky header to an UIScrollView.",
    "description": "Library helping to add a sticky header to an UIScrollView.nThe code is based on https://github.com/maxep/MXParallaxHeader.",
    "homepage": "https://github.com/yageek/StickyHeader",
    "license": "MIT",
    "authors": {
        "Yannick Heinrich": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yageek/StickyHeader.git",
        "tag": "2.0.0"
    },
    "source_files": "StickyHeader",
    "platforms": {
        "ios": "8.0"
    },
    "pushed_with_swift_version": "3.0.1"
}

Pin It on Pinterest

Share This