Hide status bar

Discussion in 'iOS Programming' started by yaniv92648, Jun 1, 2010.

  1. yaniv92648 macrumors member

    Oct 26, 2009
    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?
  2. petron macrumors member

    May 22, 2009
    Malmo, Sweden

    Please try this one:

    [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
    Let mi know if it helped.

  3. yaniv92648 thread starter macrumors member

    Oct 26, 2009
    The answer was info.plist

    I already tried
    [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
    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...

Share This Page