Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why iPad can't hide Status Bar from splash?

Greetings everyone!

I'm curious about what could solve this. I'm working on an universal app, on my iPod Touch and iPhone the status bar hides from the start of the splash image animation. However, on the iPad it only hides until the splash image is gone.

This is what i have in my AppDelegate:

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
    [window addSubview:viewController.view];
    [window makeKeyAndVisible];
    [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
}

In my info.plist... "Status bar is initially hidden" is checked. And my code isn't setting the status bar visible again on any moment.

Any idea on what could be causing this?

Thanks.

like image 340
AlexLive Avatar asked Nov 05 '22 10:11

AlexLive


1 Answers

The easiest way to hide the status bar for universal apps is to go into you Info.plist; right click to add a row and select Status Bar Initially hidden.

This will ensure every time you app launches the status bar will be hidden.

check screenshot

like image 75
9to5ios Avatar answered Nov 15 '22 12:11

9to5ios