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

  • Home
  • SEARCH
  • 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 6638949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:29:49+00:00 2026-05-25T23:29:49+00:00

I have a modal view, which I show after application launch. The problem now

  • 0

I have a modal view, which I show after application launch. The problem now is that the Modal view leaves 20 pixels for the status bar (See picture)

double status bar http://k.minus.com/j1vKSpCmFJXie.png

This is what my MyViewController looks like in Interface builder:

IB-Layout http://k.minus.com/jbyZPICtsq0sMy.png

In the viewDidLoadcallback I set the view to my WelcomeVC’s view like this:

- (void)viewDidLoad{
  [super viewDidLoad];
  self.view = self.navController.view; // navController is the outlet to my NavigationController in IB
}

I open the modal like this:

MyViewController *welcomeVC = [[MyViewController alloc]init];
[self presentModalViewController:welcomeVC animated:YES];
[welcomeVC release];

How do I get rid of this space between the view and the status bar?

  • 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-25T23:29:50+00:00Added an answer on May 25, 2026 at 11:29 pm

    I figured out that it does not make a lot of sense to add the NavigationController directly to the viewcontroller, since the NavigationController should rather be defined outside the ViewController, since my ViewController does not neccesarily know whether it will be displayed inside a NavigationController or a modal popup or maybe even a Popover on an iPad.

    So what I’ve done is I created two separate ViewControllers for both the Welcome view and the Plans view. This means that they are more universally usable also for cases when only either of the views is displayed.

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

Sidebar

Related Questions

I have an application which displays modal views. In the last modal view, I
i have a modal view which contains only o button and a uilabel. The
I have an application that I have written to view logs from custom applications
I have an ActionResult that returns a View with a grid that show notes
I have a view which is presented as a modal view controller which takes
I have a view model with a property Fields which is an ObservableCollection<FieldVM> .
I am having trouble getting my modal view controllers to display properly. I have
I am trying to present a modal view controller. I have read the documentation,
if i have created a view model and have a partial form that is
I have a Java project that I'm trying to implement with a model-view-controller design.

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.