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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:53:50+00:00 2026-06-09T23:53:50+00:00

I have a view controller that contains a UITableView. I’m trying to put the

  • 0

I have a view controller that contains a UITableView. I’m trying to put the UITableView into a UITabBarController as one of the views. It wont work, nothing will show up on the bottom. If I put an iAd banner on the bottom, it doesn’t show. The UITabBar will not show. I don’t know what the problem is. I’m figuring that maybe the UITableView is going somehow over the UITabBar, but I really have no clue. I tried making it shorter, but to no avail. Any help would be much appreciated. Also, I’m doing this using UIStoryboards, mainly. I’m not sure what code is relevant here, so please just tell me if you need to see any. Thanks in advance,

-Sam

  • 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-06-09T23:53:52+00:00Added an answer on June 9, 2026 at 11:53 pm

    I went through what you’re going through – I’m also using storyboards. I don’t remember where I found this snippet but it has worked well for me. Credit should go to the guy who wrote it originally.

    - (void)viewWillAppear:(BOOL)animated 
    { 
        [super viewWillAppear:animated];
    
        //Initialize the toolbar 
        toolbar = [[UIToolbar alloc] init]; 
        toolbar.barStyle = UIBarStyleDefault;
    
        //Set the toolbar to fit the width of the app. 
        [toolbar sizeToFit];
    
        //Caclulate the height of the toolbar CGFloat 
        CGFloat toolbarHeight = [toolbar frame].size.height;
    
        //Get the bounds of the parent view 
        CGRect rootViewBounds = self.parentViewController.view.bounds;
    
        //Get the height of the parent view. 
        CGFloat rootViewHeight = CGRectGetHeight(rootViewBounds);
    
        //Get the width of the parent view, 
        CGFloat rootViewWidth = CGRectGetWidth(rootViewBounds);
    
        //Create a rectangle for the toolbar 
        CGRect rectArea = CGRectMake(0, rootViewHeight - toolbarHeight, rootViewWidth, toolbarHeight);
    
        //Reposition and resize the receiver 
        [toolbar setFrame:rectArea];
    
        // add buttons (make sure you create your buttons)
        //[toolbar setItems:[NSArray arrayWithObjects:trashButtonItem, leftSpaceButtonItem, cameraButtonItem, rightSpaceButtonItem, addButtonItem, nil]];
    
        //Add the toolbar as a subview to the navigation controller. 
        [self.navigationController.view addSubview:toolbar]; 
    
    }
    

    You’ll have to substitute the buttons with your own obviously.

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

Sidebar

Related Questions

I have a view controller based app that contains several views that I display/hide
I have a view controller that contains a UITableView. When the view controller gets
I have an app with a custom UITabBarController that contains five view controllers. Within
I have Navigation View controller that contains web view. The top bar of Navigation
I have a document-based application with a view controller that contains a table, array
I have 2 tabs, one that contains the imagepicker controller, and another that contains
I have a view that contains a UITableView and a UILabel which works perfectly
I am working on an app where i have a view controller that contains
I have pushed a view onto my nav controller that contains a UIWebView and
I have a view controller with table view that contains 8 cells(sections).I have created

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.