Latest 1.0.0
Homepage https://github.com/KoheiHayakawa/KHATableViewWithSeamlessScrollingHeaderView
License MIT
Platforms ios 9.0
Authors

Platform
Language

CocoaPods

platform :ios, '9.0'
use_frameworks!

pod 'KHATableViewWithSeamlessScrollingHeaderView'

Requirements

  • iOS 9.0
  • Xcode 7.0
  • Swift 2.0

Interface

demo

like Music app of iOS 9

Usage

import UIKit
import KHATableViewWithSeamlessScrollingHeaderView

class MusicViewController: KHATableViewWithSeamlessScrollingHeaderViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "Star Wars IV: A New Hope"
        navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .Search, target: self, action: "addTapped")

        // Color settings
        navigationController?.navigationBar.tintColor = UIColor.whiteColor()
        navigationBarTitleColor = UIColor.whiteColor()
        navigationBarBackgroundColor = UIColor.blackColor()
        navigationBarShadowColor = UIColor.lightGrayColor()
        tableView.backgroundColor = UIColor.blackColor()
        tableView.indicatorStyle = .White
        statusBarStyle = .LightContent
    }

    // Header view
    override func headerViewInView(view: KHATableViewWithSeamlessScrollingHeaderViewController) -> UIView {
        return UINib(nibName: "MusicHeaderView", bundle: nil).instantiateWithOwner(self, options: nil)[0] as! UIView
    }
}

"View controller-based status bar appearance" must be set "NO" at Info.plist

Contact

@pettarou2

License

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

Latest podspec

{
    "name": "KHATableViewWithSeamlessScrollingHeaderView",
    "version": "1.0.0",
    "summary": "Seamless and transparent scrolling header",
    "homepage": "https://github.com/KoheiHayakawa/KHATableViewWithSeamlessScrollingHeaderView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kohei Hayakawa": "[email protected]"
    },
    "social_media_url": "http://twitter.com/pettarou2",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/KoheiHayakawa/KHATableViewWithSeamlessScrollingHeaderView.git",
        "tag": "1.0.0"
    },
    "source_files": "KHATableViewWithSeamlessScrollingHeaderView"
}

Pin It on Pinterest

Share This