Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6085957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:41:51+00:00 2026-05-23T11:41:51+00:00

This is a part of me trying to get used to working with XCode4…

  • 0

This is a part of me trying to get used to working with XCode4…

OK, so i’ve created a new project in XCode 4 and I used the View Based Application template; I wish to build the new app as Apple intended me to use this template.

So I’m using the automatically-created-view-controller which is called from the AppDelegate (so far I haven’t touched anything). Now, I want to remove the STATUS BAR. As far as I understand, what I should do, is go to the view XIB and in the Attributes Inspector set the Status Bar field to None (this is how I used to do it so far), but mercilessly when I run the application the STATUS BAR is still there (!).

I also tried to do the same thing on the mainWindow.xib file (the setting the STSTUS BAR attribute to None thing) and the app runs with this bar that blocks my view…

Anyone?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:41:51+00:00Added an answer on May 23, 2026 at 11:41 am

    If you read the “header” you will see “Simulated metrics”. Those properties are only to simulate visual elements when you lay out your code with interfacebuilder.

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

    If you do it in the Application Delegate you write:

        [application setStatusBarHidden:YES animated:NO];
    

    in this method:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {...}
    

    EDIT

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/UIApplication/setStatusBarHidden:withAnimation:

    Requested in comment, from documentation:

    setStatusBarHidden:withAnimation:

    Hides or shows the status bar,
    optionally animating the transition.
    – (void)setStatusBarHidden:(BOOL)hidden
    withAnimation:(UIStatusBarAnimation)animation
    Parameters

    hidden

    YES to hide the status bar, NO to show the status bar. animation
    
    A constant that indicates whether there should be an animation and, if
    

    one is requested, whether it should
    fade the status bar in or out or
    whether it should slide the status bar
    in or out.

    Discussion

    See the descriptions of the constants
    of the UIStatusBarAnimation type for
    more information. Availability

    * Available in iOS 3.2 and later.
    

    So if you are not interested in the animation part I suggest using this:

    statusBarHidden

    A Boolean value that determines
    whether the status bar is hidden.
    @property(nonatomic,
    getter=isStatusBarHidden) BOOL
    statusBarHidden Return Value

    YES means the status bar is hidden; NO
    means it’s visible. Availability

    * Available in iOS 2.0 and later.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As part of my ecommerce application, I have this interesting problem, I've been trying
I've started a new job this week and am trying to get my head
I am trying to get a variable to display, when used as part of
I am trying to learn and writting this part of code. while testing few
I'm trying to read the Prototype source. I've come to this part.(Unfortunately, this snippet
I am trying to learn TDD and this is part of my homework I
I'm trying to use pointers and strcat from C. This is part of my
This is a but of a part 2 in trying to convert an SVN
I am trying to obtain the value part of this syntax: [name:value] I got
I am trying to code this algorithm. I am stuck in the part of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.