Skip to content

Objective-c Scrollable UINavigationBar that follows the scrolling of a UIScrollView

Notifications You must be signed in to change notification settings

alejouribesanchez/ScrollHideNavigationController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ScrollHideNavigationController

ScrollHideNavigationController is Objective-c version of AMScrollingNavbar this version is compatible with PageMenu A custom UINavigationController that enables the scrolling of the navigation bar alongside the scrolling of an observed content view.

Sponsored by IQBoxy app

Versioning notes

  • Version 1.x is written as a subclass of UINavigationController, in Objective C.

Screenshot

Usage

Download source classes and add them into your project

Make sure to use a subclass of ScrollHideNavigationController for your UINavigationController. Either set the class of your UINavigationController in your storyboard, or create programmatically a ScrollingNavigationController instance in your code.

Objective-C

#import "ScrollHideNavigationController.h"

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];

    [(ScrollHideNavigationController *)self.navigationController followScrollView:self.tableView];
}

you can put a delay

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];

    [(ScrollHideNavigationController *)self.navigationController followScrollView:self.tableView delay:50.0f];
}

stop follow view

 [((ScrollHideNavigationController *)self.navigationController) stopFollowingScrollView];

Author

Alejandro Uribe Sánchez.

Contributors

Andrea Mazzini

Similar Projects

MIT License

The MIT License (MIT)

Copyright (c) 2017 Alejandro Uribe Sánchez

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Objective-c Scrollable UINavigationBar that follows the scrolling of a UIScrollView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published