All Projects → luugiathuy → Gtscrollnavigationbar

luugiathuy / Gtscrollnavigationbar

Licence: bsd-3-clause
A scrollable UINavigationBar that follows a UIScrollView

Projects that are alternatives of or similar to Gtscrollnavigationbar

scrollRulerView
请使用 CYRuler (Please use CYRuler)
Stars: ✭ 31 (-94.45%)
Mutual labels:  uiscrollview
ScrollAnimationShowcase
[ING] - UIScrollViewやUICollectionViewの特性を活用した表現サンプル
Stars: ✭ 15 (-97.32%)
Mutual labels:  uiscrollview
Mbtwitterscroll
Recreate Twitter's profile page scrolling animation for UITableView and UIScrollViews.
Stars: ✭ 421 (-24.69%)
Mutual labels:  uiscrollview
ISVImageScrollView
Image preview component with zoom, scroll and rotation support
Stars: ✭ 28 (-94.99%)
Mutual labels:  uiscrollview
EmbeddedScrollView
Embedded UIScrollView for iOS.
Stars: ✭ 55 (-90.16%)
Mutual labels:  uiscrollview
Baraba
Make your UIScrollView scroll automatically when user is looking 👀 by tracking face using ARKit and AVFoundation
Stars: ✭ 268 (-52.06%)
Mutual labels:  uiscrollview
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (+207.69%)
Mutual labels:  uiscrollview
Pulltomakeflight
Custom animated pull-to-refresh that can be easily added to UIScrollView
Stars: ✭ 497 (-11.09%)
Mutual labels:  uiscrollview
XLRefresh
iOS 下拉刷新工具
Stars: ✭ 25 (-95.53%)
Mutual labels:  uiscrollview
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift
Stars: ✭ 3,395 (+507.33%)
Mutual labels:  uiscrollview
StickyHeader
📐 Library helping to add a sticky header to an UIScrollView
Stars: ✭ 18 (-96.78%)
Mutual labels:  uiscrollview
ZVRefreshing
A pure-swift and wieldy refresh component.
Stars: ✭ 29 (-94.81%)
Mutual labels:  uiscrollview
Slidecontroller
Swipe between pages with an interactive title navigation control. Configure horizontal or vertical chains for unlimited pages amount.
Stars: ✭ 279 (-50.09%)
Mutual labels:  uiscrollview
2DUICollectionViewSwift
A simple and elegant 2Dimensional UICollectionView which is most commonly used in ecommerce apps, music streaming apps etc. Easily customisable as per your requirements as it is designed keeping the superset requirement in mind. Developed in latest Swift syntax.
Stars: ✭ 28 (-94.99%)
Mutual labels:  uiscrollview
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+642.75%)
Mutual labels:  uiscrollview
Pulltomakesoup
Custom animated pull-to-refresh that can be easily added to UIScrollView
Stars: ✭ 1,928 (+244.9%)
Mutual labels:  uiscrollview
JQScrollNumberLabel
JQScrollNumberLabel:仿tumblr热度滚动数字条数, 一个显示数字的控件,当你改变其数字时,能够有滚动的动画,同时动画和位数可以限制,动态创建和实例化可选,字体样式自定义等。
Stars: ✭ 29 (-94.81%)
Mutual labels:  uiscrollview
Zseatselector
Create a Seat Map Layout
Stars: ✭ 539 (-3.58%)
Mutual labels:  uiscrollview
Jt3dscrollview
ScrollView with custom effects during the scroll for iOS
Stars: ✭ 494 (-11.63%)
Mutual labels:  uiscrollview
Webbrowser
iOS浏览器 Web Browser for iOS
Stars: ✭ 332 (-40.61%)
Mutual labels:  uiscrollview

GTScrollNavigationBar

CocoaPods Version Build Status Coverage Status

A lightweight scrollable UINavigationBar that follows a UIScrollView. This project was inspired by the navigation bar functionality seen in the Chrome, Facebook and Instagram iOS apps.

GTScrollNavigationBar Screenshot 1 GTScrollNavigationBar Screenshot 2

Installation

CocoaPods

Add pod GTScrollNavigationBar to your Podfile.

Manually

Add the GTScrollNavigationBar folder to your project. GTScrollNavigationBar uses ARC, so if you have a project that doesn't use ARC, add the -fobjc-arc compiler flag to the GTScrollNavigationBar files.

Usage

Set up the navigation controller to use GTScrollNavigationBar:

#import "GTScrollNavigationBar.h"

self.navController = [[UINavigationController alloc] initWithNavigationBarClass:[GTScrollNavigationBar class]
                                                                   toolbarClass:nil];
[self.navController setViewControllers:@[self.mainViewController] animated:NO];

In your view controller which has a UIScrollView, e.g. UITableViewController, set the UIScrollView object to the GTScrollNavigationBar in viewWillAppear: or viewDidAppear: by:

self.navigationController.scrollNavigationBar.scrollView = self.tableView;

To unfollow the scrollView, simply set scrollView property to nil

self.navigationController.scrollNavigationBar.scrollView = nil;

Implement scrollViewDidScrollToTop: in the view controller to reset the navigation bar's position

- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView
{
    [self.navigationController.scrollNavigationBar resetToDefaultPositionWithAnimation:NO];
}

Contact

@luugiathuy

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].