How to slide in/out statusBar and navigationBar simultaneously?

This isn't much of an answer but it works. So what I did is.

This isn't much of an answer but it works. So what I did is: // This method gets called by whatever action you want - (void) toggleShowStatusNavBars:(id)sender { // Assuming you have a ivar called barsdden UIView beginAnimations:nil context:nil; UIView setAnimationDuration:0.4; // This is IMPORTANT, 0.4s self. NavigationController.navigationBar.

Alpha = (bars1.0:0.0); barsbars UIView setAnimationDelegate:self; UIView setAnimationWillStartSelector:@selector(setStatusBar UIView commitAnimations; } - (void) setStatusBardden { UIApplication sharedApplication setStatusBardden:bars } This will basically synchronize the start of the animation (since you are calling setStatusBardden at the start of the navigation bar animation. The key part is that the status bar animation seems to take 0.4 seconds. This works for me but if you find a better way, do post here.

You're hiding the navBar using alpha fading. This is easier because in this case you can manipulate the navBar directly. In the sliding case I'm interested in that's not a viable approach since the navigationController also manipulates the content view frame.

– Ortwin Gentz Oct 13 '10 at 22:00.

Clearly, there's no easy solution to do this right. Apple has to fix it. Of course, one work-around is to use alpha fading as Ephraim suggests.

If you're insisting on the sliding behavior, I found it best to just animate the navigation bar and hide/show the statusBar without any animation. This looks much better than sliding the status bar because the gap between the bars during the animation is quite noticeable.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions