i have app user can tap screen , navigation bar fade out (i setting alpha 0), when device rotated navigation bar reappears (i guess alpha reset 1?). how can prevent behaviour?
the navigation bar stays hidden if use [self.navigationcontroller setnavigationbarhidden:yes animated:yes]
instead, doesn't give me fade effect want.
is there way fading effect?
thanks
i assume you're animating out navigation bar alpha? why not hide navigation bar once you're finished?
[uiview animatewithduration:1.0 animations:^{ self.navigationcontroller.navigationbar.alpha = 0; } completion:^(bool finished) { [self.navigationcontroller setnavigationbarhidden:yes animated:no]; }];
Comments
Post a Comment