Hide status bar

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

  1. yaniv92648 macrumors member

    Joined:
    Oct 26, 2009
    #1
    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!
     
  2. petron macrumors member

    Joined:
    May 22, 2009
    Location:
    Malmo, Sweden
    #2
    Hi,

    Please try this one:

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

    GL
    /petron
     
  3. yaniv92648 thread starter macrumors member

    Joined:
    Oct 26, 2009
    #3
    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...
     

Share This Page