Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yaniv92648

macrumors member
Original poster
Hi,
sounds simple but i messed up something...
there's 2 ways i know of how to do this:
1. programmatically:
- (void)applicationDidFinishLaunching🙁UIApplication *)application{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
unfortunately it only hides the status bar after the splash screen shows up and i would like the splash screen to show up already without the status bar.
2. info.plist
adding a field named "Status bar is initially hidden" or "UIStatusBarHidden"
and mark it's checkbox.
in another app i did it worked fine, in here it doesn't.
i looked for differences between the apps but so far i haven't found the problem. anybody?
Thanks!
 
Hi,

Please try this one:

Code:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

Let mi know if it helped.

GL
/petron
 
The answer was info.plist

I already tried
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
also..
programmatically it'll always hide the status bar after the splash screen shows up.
i still don't know what the problem was but deleting and creating a new info.plist with exactly the same data as before fixed the problem 🙂
go figure...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.