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 310413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:49:52+00:00 2026-05-12T07:49:52+00:00

Once again I’ve searched for about 45 minutes for an answer to this question

  • 0

Once again I’ve searched for about 45 minutes for an answer to this question and I thought I might have found the answer but then the situation I was reading wasn’t exactly like the one I’m running into.

when I add my view it seems that it’s not completely covering the window I was able to get rid of the status bar at the top but there is a section of space at the bottom that the view is not covering

alt text http://img177.imageshack.us/img177/8844/picture1zjv.png

as you can see from the screenshot there is an orange bar…it’s orange because I know what it actually is under there (it’s the viewController’s view but everything I try I can’t seem to get the added view to cover the screen.

this is the only code that’s run

  • (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:mainMenu];
    }

Any help would be appreciated.

  • 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-12T07:49:52+00:00Added an answer on May 12, 2026 at 7:49 am

    There are a few things that might be going wrong:

    Your frame might be too short. In viewDidLoad: you can add a debug statement to check its height:

    NSLog(@"Height is %f", self.view.frame.size.height);
    

    It looks like you want that value to be 480, the full height of the screen.

    Your origin might be too high. Similarly check your y offset:

    NSLog(@"y origin is %f", self.view.frame.origin.y);
    

    It looks like you want that value to be 0.

    The origin of your superview might be too high. Assuming you this view only has one superview, this code will help check the absolute coordinates of your view’s origin:

    CGPoint absoluteOrigin = [self.view convertPoint:self.view.frame.origin
                                              toView:self.view.superview];
    NSLog(@"y origin in superview is %f", absoluteOrigin.y);
    

    You can just tag on a few extra .superview‘s to find out the coordinates in terms of the prior views.

    By the way, instead of just using 480 as a magic number in your code, you might want to do something like this to get the full height:

    CGRect appFrame = [[UIScreen mainScreen] applicationFrame];
    CGFloat screenHeight = appFrame.size.height;
    

    The applicationFrame property takes into account whether or not the status bar is displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once again a question about the garbage collector in actionscript-3: If I have a
Once again a question about extjs. I use EXT 4.0.2 and have a couple
Once again I have a small problem to get this done in django. But
Once again I have a question about Eclipselink/MOXy with external metadata mapping file. I
I am once again looking for some help. I have found this stopwords script
I think I've seen this done once, but I cannot find it again after
Math has defeated me once again. This is such a simple task, but I
Hello there once again... I came up with an strange idea but I have
Once again a very beginner-ish question, but here I go: I would like to
Once again I'm asking this question, and still can't find any reasonable solution. I

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.