Latest 1.1.0
Homepage https://github.com/Liaojiahao/JHNavigationBar
License MIT
Platforms ios 8.0
Authors

Screenshot

alt tag
alt tag

Usage

 override func viewDidLoad() {
        super.viewDidLoad()

        // case1:
        var color = UIColor(red: 25/255, green: 144/255, blue: 211/255, alpha: 1)
        self.navigationController?.navigationBar.overlayColor = color

    }
    override func viewWillDisappear(animated: Bool) {
        super.viewWillDisappear(animated)

        // case2:
//        self.navigationController?.navigationBar.jh_heightReset()

        // case1:
        self.navigationController?.navigationBar.jh_alphaReset()
    }

    override func viewWillAppear(animated: Bool) {
        //need
        self.scrollViewDidScroll(tableView)
    }

    func scrollViewDidScroll(scrollView: UIScrollView) {
//         case1:
        JHNavBarHandle.handleJHNavigationBarAlpha(scrollView, uiviewcontoller: self)

        //case2:
//        JHNavBarHandle.handleJHNavigationBarHeight(scrollView, uiviewcontoller: self)

    }

CocoaPods

pod ‘JHNavigationBar’, ‘~> 1.1.0’

Latest podspec

{
    "name": "JHNavigationBar",
    "version": "1.1.0",
    "summary": "Change UINavigationBar appearance dynamically in Swift",
    "description": "                   Change UINavigationBar appearance dynamically in Swift!nn",
    "homepage": "https://github.com/Liaojiahao/JHNavigationBar",
    "screenshots": [
        "https://raw.githubusercontent.com/Liaojiahao/JHNavigationBar/master/screenshoot1.gif",
        "https://raw.githubusercontent.com/Liaojiahao/JHNavigationBar/master/screenshoot2.gif"
    ],
    "license": "MIT",
    "authors": {
        "LiaoJiaHao": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Liaojiahao/JHNavigationBar.git",
        "tag": "1.1.0"
    },
    "source_files": "JHNavigationBar/*"
}

Pin It on Pinterest

Share This