0

In my app, the UI fades in and out when you shake the phone using the following code:

- (void)showButton:(UIButton*)xButton {
[UIView animateWithDuration:0.3
                      delay:0.0
                    options: UIViewAnimationCurveEaseInOut
                 animations:^{xButton.alpha = 1.0;}
                 completion:nil];
}  

I am also using this code to make the status bar hidden:

- (BOOL)prefersStatusBarHidden {return YES;}  

However, how can I have the status bar fade in and out using the same animation as I do for the rest of the UI? All help appreciated.

Edit: Though a fade would be ideal, if it is not possible, I would be able to settle for the status bar simply being shown and hidden ("popping" in and out).

djinne95
  • 275
  • 1
  • 3
  • 10

0 Answers0