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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:27:27+00:00 2026-05-24T17:27:27+00:00

What I want to do is to have my table view controller appear when

  • 0

What I want to do is to have my table view controller appear when the user presses a tab bar item, and when the user presses a cell in the table I want to switch to a nav controller while retaining the tab bar controller.

So far I’ve been testing my table view in my tab bar controller with a test UIViewController class and trying to switch to that.

I’ve added the following to my table view delegate method:

test *newTest = [[test alloc] init];
[self.view insertSubview:newTest.view atIndex:0];

It just overlaps the nib onto what I already have. I suspect I must clear my existing table view? Also, can I use this method with a UINavigationController?

I would like to add that initially I had a navigation controller with the table controllers within. However, the first table controller I did not want the top navigation bar. I only wanted a top bar until the person drilled down to the second level.

  • 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-24T17:27:28+00:00Added an answer on May 24, 2026 at 5:27 pm

    Put your table VC back in your navigation stack as the root controller, but add these lines to have the navigation bar hide:

    -(void)viewWillAppear:(BOOL)animated {
      [super viewWillAppear:animated];
      [self setNavigationBarHidden:YES animated:animated];
      /* ...your existing code... */
    }
    
    -(void)viewWillDisappear:(BOOL)animated {
      [super viewWillDisappear:animated];
      [self setNavigationBarHidden:NO animated:animated];
      /* ...your existing code... */
    }
    

    You may need to put one or the other of these in the viewDidAppear:/viewDidDisappear: methods if the animation looks awkward or happens at the wrong time.

    Also, as far as showing/hiding the tab bar goes, check out the hidesBottomBarWhenPushed field on UIViewController.

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

Sidebar

Related Questions

On each cell of my table view I want to have a bar that
I have a Table View Controller with cells. I want to update the text
I have a navigation controller which also has a table view. I want to
I have this in my table view controller, and i want to pass the
I have a view controller (derived from UIViewController not UITableViewController) containing a table view.
I have a navigation controller with a table view. In most tutorials I've read
So I have 2 tabs in tab bar controller. tab 1 is the rootController.
I have a table view which I want to bring up in edit mode
I have a table view, and I want to add a row, and save
In My Application 1) Login View 2) -View -Tab View Controller -Navigation Caontroller -Table

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.