Custom animation when hiding UINavigationBar
I'm making an application which shows/hides (in custom animation) the UINavigationBar on single tap. I have created two functions (one for showing and the other for hiding). The function for showing the UINavigationBar works perfectly: - (void) showNavigationBar { [UINavigationBar beginAnimations:@"NavBarFadeIn" context:nil]; self.navigationController.navigationBar.alpha = 0; [UINavigationBar setAnimationCurve:UIViewAnimationCurveEaseIn]; [UINavigationBar setAnimationDuration:0.5]; [UINavigationBar setAnimationTransition:UIViewAnimationOptionTransitionFlipFromTop forView:self