title: Animating status bar iOS 7
body: <p>Im trying (struggling) to implement a snapchat like error message display for my app (snapchat error messages slide down over the status bar somehow) in iOS7. I cannot for the life of me get my animation to work right. Here is my method that does the animation</p>
  
  <pre><code>- (void)animateHeaderViewWithText:(NSString *)text {
  
      //add header views
      [self.headerView addSubview:self.headerLabel];
      [self.navigationController.view addSubview:self.headerView];
  
      //Hide the Status Bar
      statusBarHidden = TRUE;
      [self setNeedsStatusBarAppearanceUpdate];
  
      self.headerLabel.text = text;
  
      [UIView animateWithDuration:.5 delay:0.0 options:UIViewAnimationOptionCurveEaseIn animations:^{
  
          self.headerLabel.frame = CGRectMake(0, 0, 320, 20);
          self.headerView.frame = CGRectMake(0, 0, 320, 20);
  
  
      } completion:^(BOOL finished) {
  
  
      [UIView animateWithDuration:.5 delay:5.0 options:UIViewAnimationOptionCurveEaseIn animations:^{
  
          //UnHide the Status Bar
          statusBarHidden = FALSE;
          [self setNeedsStatusBarAppearanceUpdate];
  
          self.headerLabel.frame = CGRectMake(0, -20, 320, 20);
          self.headerView.frame = CGRectMake(0, -20, 320, 20);
  
  
  
      } completion:^(BOOL finished) {
  
  
          [self.headerView removeFromSuperview];
          [self.headerLabel removeFromSuperview];
  
      }];
  }];
  
  }
  </code></pre>
  
  <p>Only the second half of the animation really works right, the message slides back up fine and the status bar appears underneath it. However, the first half of the animation, when the view slides down, the status bar disappears causing my navigation bar to move up, screwing up my animation. How can I get my navigation bar to stay where it is initially placed, even when the status bar is gone</p>