I would like to have the navigation bar hide more slowly than usual.
I tried the following, but when hiding, it disappears instantly instead of animating out (the view below does animate up correctly):
[UIView beginAnimations:@"hideNavBar" context:nil];
[UIView setAnimationDuration:2.0];
[self.navigationController setNavigationBarHidden:value];
[UIView commitAnimations];
If I substitute:
[self.navigationController setNavigationBarHidden:value animated:YES];
Then it uses the usual duration instead of my slow version. Hmmph.
I even tried to get really crafty and do:
CGFloat *durationRef = &UINavigationControllerHideShowBarDuration;
CGFloat oldDuration = *durationRef;
*durationRef = 2.0;
[self.navigationController setNavigationBarHidden:value animated:YES];
*durationRef = oldDuration;
Which resulted in a EXE _ BAD _ ACCESS on the assignment. Any ideas?