Transparent Status Bars (iPhone / iPad / iPod Touch)

I look around and it seems that the answer is no, but the messages are dated, so I was wondering if that had changed. Is it possible to set the status bar to transparency? I am trying to make a fade-in / fade-out effect on a multi-touch tap, but the status bar continues to grow as a solid black.

Thank!

- change - The code that I use to jump to events is shown below. I set the status bar translucent to -info.plist, but I noticed that there is no black transparent setting in IB (this is probably my answer: there is no translucent status bar if you are not Apple).

-(IBAction)showOptions:(id)sender
{
if ([UIApplication sharedApplication].statusBarHidden == YES) {
    [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
    [UIView beginAnimations:@"fadeIn" context:nil];
    [UIView setAnimationDuration:0.25];
    [UIView setAnimationCurve:UIViewAnimationCurveLinear];
    optionsView_portrait.alpha = 0.5;
    [UIView commitAnimations];
}
else
{
    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
    [UIView beginAnimations:@"fadeOut" context:nil];
    [UIView setAnimationDuration:0.25];
    [UIView setAnimationCurve:UIViewAnimationCurveLinear];
    optionsView_portrait.alpha = 0.0;
    [UIView commitAnimations];
}
}
+5
source share
2 answers

UIApplication:

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent
                                            animated:YES];

, , 320 480 . , , , 20 , .

- 20 , .

EDIT:. iPad, , iPad . .

+14

- ?

[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
+2

All Articles