Trying to make it so that when a user scrolls my application the navigation bar disseapears but when they scroll up it reappears.
I have the following code:
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
    self.latestOffset = scrollView.contentOffset.y;
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
   if(self.latestOffset > scrollView.contentOffset.y) {
       [self.navigationController setNavigationBarHidden:NO animated:YES];
   }
   if (self.latestOffset < scrollView.contentOffset.y) {
       [self.navigationController setNavigationBarHidden:YES animated:YES];
   }
}
Running into an issue where the navigation bar sometimes covers my scroll view and also an issue where if you don't scroll down far enough things seem to go wrong.