开发者

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.


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.

Why iPad can't hide Status Bar from splash?


I've come across this issue on the iPad as well. Believe it or not my problem was to delete the Info.plist and add it again with exactly the same data as previously entered.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜