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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:58:14+00:00 2026-05-30T10:58:14+00:00

I have a tab controller, which contains a navigation controller which again contains a

  • 0

I have a tab controller, which contains a navigation controller which again contains a view controller. The view controller shows a tab bar and a navigation bar.

In this view controller I want to add a full screen view (hides the tab bar and the navigation bar but leaves the status bar) which is shown during loading. I have subclassed UIView and set up a layout in a nib file which is loaded to this view:

- (id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        // Load nib
        self = [[[NSBundle mainBundle] loadNibNamed:@"FrontpageCountdownView" owner:self options:nil] objectAtIndex:0];
    }
}

I add this view in the view controller like this:

// Hide tab bar and navigation bar
self.tabBarController.tabBar.hidden = YES;
self.navigationController.navigationBar.hidden = YES;

// Add loading (frontpage countdown) view
CGRect frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height);
NFFrontpageCountdownView *countdownView = [[NFFrontpageCountdownView alloc] initWithFrame:frame];
[self.view addSubview:countdownView];

The view in my nib has a size of 460 (full screen, minus the status bar). My problem is, that when I add it to the view controller it appears “bigger”.
I would think that since the view has a size of 460 it should show the entire view when it is added to the view controller but it doesn’t show the bottom. It seems that the view is too big even though it is 460 pixels.

Can anybody tell me why this is?

My view in Interface Builder

EDIT

How my view looks in Interface Builder:

My view in Interface Builder

How my view looks in the simulator:

My view in the simulator

  • 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-30T10:58:15+00:00Added an answer on May 30, 2026 at 10:58 am

    This happens when hiding the tab bar using self.tabBarController.tabBar.hidden = YES.

    Instead, you should hide it and then extend the view of the tabBarController.

    CGRect tabBarFrame = self.tabBarController.view.frame;
    tabBarFrame.size.height += self.tabBarController.tabBar.frame.size.height;
    self.tabBarController.view.frame = tabBarFrame;
    self.tabBarController.tabBar.hidden = YES;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tab-bar and navigation controller application (like Youtube app or Contacts app).
I have a tab bar application that contains navigation views in 2 of its
I want to make a favorites button in my tab bar controller which permanently
Description I have a Tab Bar Controller with a navigation controller tab. The first
I have an MKMapView as part of a Navigation Controller in a Tab Bar
I have a three view tab bar app the second view of which I
I present a modal view controller which is a tab bar controller with a
I have an application that has many views (Using tab bar controller). I want
I have a tab bar controller and in both tab bar items i have
I have a Tab Bar Controller created in Interface Builder Within the Tab Bar

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.