iphone FullScreen View navigation bar displacement
<p>I implemented an app like photo app. Images in full screen are displayed fine.</p>

<p>After few seconds the navigation bar and status bar are hidden, now if i close the app and again open it, the navigation bar is displaced at the top of the screen where status bar overlaps on navigation bar</p>

<p>Please help me</p>

<p>Below is the code i am using for toggle chrome</p>

<pre><code>- (void)toggleChrome:(BOOL)hide {

    NSLog(@"toogle Chrome");

   isChromeHidden_ = hide;
   [UIView beginAnimations:nil context:nil];

   [UIView setAnimationDuration:0.3];

   if ( ! [self isStatusbarHidden] ) {

      [[UIApplication sharedApplication] setStatusBarHidden:hide withAnimation:YES];

   }

   CGFloat alpha = hide ? 0.0 : 1.0;

   // Must set the navigation bar's alpha, otherwise the photo
   // view will be pushed until the navigation bar.
   UINavigationBar *navbar = [[self navigationController] navigationBar];
   [navbar setAlpha:alpha];

   [toolbar_ setAlpha:alpha];

   [UIView commitAnimations];

   if ( ! isChromeHidden_ ) {
      [self startChromeDisplayTimer];
   }
}
</code></pre>
