[Tutorial] Removing the Status Bar

Discussion in 'iOS Development' started by JoshuaCaputo, Jan 19, 2009.

  1. JoshuaCaputo

    JoshuaCaputo New Member

    Joined:
    Aug 2, 2008
    Messages:
    605
    Likes Received:
    0
    Device:
    iPod touch
    Xcode

    In your project navigate to the Recourses Group and by default Xcode places a file named info.plist in there.

    Please Register or Log in to view images


    Click on this file and than add a new key named UIStatusBarHidden.

    Please Register or Log in to view images


    Next Right Click on the new key and select Value Type > Boolean.

    Please Register or Log in to view images


    Finally Check the Boolean and your set.

    Please Register or Log in to view images



    My first tut btw

    Please Register or Log in to view images

  2. godogshomie

    godogshomie New Member

    Joined:
    Nov 19, 2007
    Messages:
    558
    Likes Received:
    3
    would be good to also add how to do it in code.
  3. JoshuaCaputo

    JoshuaCaputo New Member

    Joined:
    Aug 2, 2008
    Messages:
    605
    Likes Received:
    0
    Device:
    iPod touch
    I didn't know u could

    Please Register or Log in to view images

  4. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    I didn't know you could right-click to change the key to boolean, I was just opening it as plain text and setting it to true. Thanks

    Please Register or Log in to view images

    .
  5. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    You forgot:
    [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
  6. JoshuaCaputo

    JoshuaCaputo New Member

    Joined:
    Aug 2, 2008
    Messages:
    605
    Likes Received:
    0
    Device:
    iPod touch
    you dont need that if you do it this way.
  7. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Also, if you never intend on adding/removing/changing the statusBar. Think of all the apps that do that. Relying only on the Info.plist limits you to only one style. Really, and this is only my opinion, the Info.plist should be used to control the StatusBar while the app is loading. Ie, while the Default.png is showing and your application hasn't yet loaded.
  8. JoshuaCaputo

    JoshuaCaputo New Member

    Joined:
    Aug 2, 2008
    Messages:
    605
    Likes Received:
    0
    Device:
    iPod touch
    Im pretty sure you can change the style still. Doesn't matter. This is "Removing the Status Bar."

    Not to be rude.
  9. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Of course you can still change it. The sentence reads "Relying only on the Info.plist limits you to only one style." Whenever possible, you should learn all the methods to do things.

    I'm not going to argue with you; if you like posting incomplete guides, then feel free to.
  10. JoshuaCaputo

    JoshuaCaputo New Member

    Joined:
    Aug 2, 2008
    Messages:
    605
    Likes Received:
    0
    Device:
    iPod touch

    Please Register or Log in to view images



    the guide was to remove the status bar if you missed that. I really don't wanna argue with you because well... your you and I can't win even if you say 2+2=5 your gonna be right

    Please Register or Log in to view images

Share This Page