0

I have to do hide navigation bar when down scroll and show when top scroll look like in Facebook. How to do?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
wysio90
  • 33
  • 5
  • Please do research before you ask questions. http://stackoverflow.com/questions/19819165/imitate-ios-7-facebook-hide-show-expanding-contracting-navigation-bar – Daniel Galasko Mar 20 '14 at 14:00

2 Answers2

0

you have to use UIScrollViewDelegate methods, for example: --->

- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
    //animate your view here when you scroll
}
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{
    //reset your view to the initial position
}
Maverick
  • 319
  • 2
  • 13
0

Detect Scrolling using UIScrollView Delegates

and use

[navigationController setNavigationBarHidden: YES animated:YES]; // will hide NavigationBar

suku
  • 217
  • 3
  • 13