In the new iOS7 Facebook iPhone app, when the user scrolls up the navigationBar
gradually hides itself to a point where it completely vanishes. Then when the user scrolls down the navigationBar
gradually shows itself.
How would you implement this behavior yourself? I am aware of the following solution but it disappears right away and it isn't tied to the speed of the user's scroll gesture at all.
[navigationController setNavigationBarHidden: YES animated:YES];
I hope this isn't a duplicate as I'm not sure how best to describe the "expanding/contracting" behavior.
EDIT: Only for iOS 8 and above.
You can try use
Works for me.
If your coding in swift you have to use this way (from https://stackoverflow.com/a/27662702/2283308)