How to show/Hide UINavigationBar based on UITableview scroll up and down?

2k Views Asked by At

I just want to show UINavigationBar initial and I just want to hide the bar when the user starts to scroll down to view the other items. Once the user started to scroll up I want to show the navigation bar again with animation. (Ex: Instagram iOS application. They are hiding the navigation bar when the user starts to scroll down and they are showing the bar when we starts to scroll up.)

I tried to track the tableview scrolling used the UIScollViewDelegates but, am not able to achieve it. Can anyone please suggest me? Looking forward your help. Thanks.

1

There are 1 best solutions below

0
On

Try AMScrollingNavBar as it works with everything(Scroll View, Table View, Collection View, Web View) .

https://github.com/andreamazz/AMScrollingNavbar