Skip to content

litt1e-p/LPScrollFullScreen

Repository files navigation

LPScrollFullScreen

Scroll to hide navigationBar and toolBar or tabBar for making full screen effect like Facebook app which is base on NJKScrollFullScreen.

Additional

swift version is here

##Screenshot

Include

  • use cocapods
pod 'LPScrollFullScreen', '~> 1.0.2'
  • manual include
drag LPScrollFullScreen folder into you project

Usage

need 2 lines code only for example, in UITableViewController:

 //1.set LPScrollFullScreen scrollProxy for your scrollView/UITableView/UIWebView/UICollectionView
 _scrollProxy = [[LPScrollFullScreen alloc] initWithForwardTarget:self];
 //2.set it as delegate for your scrollView
 self.tableView.delegate = (id)_scrollProxy;
 //or
 self.collectionView.delegate = (id)_scrollProxy;
 //or
 self.webView.delegate = (id)_scrollProxy;

Release Notes

  • v1.0.2

fix a bug of hidding tabBar & navigationBar while scrollView's contentOffset <= navigationBar's bottom

  • v1.0.1

add a static property value for origin navigationBar's bottom

About

scroll to hide navigationBar and toolBar or tabBar for making full screen effect like Facebook app

Resources

License

Stars

Watchers

Forks

Packages

No packages published