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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:07:30+00:00 2026-06-12T21:07:30+00:00

Ok, so how would i go about performing this operation. I have a tab

  • 0

Ok, so how would i go about performing this operation.

  1. I have a tab bar
  2. In one view controller of the tab bar there are two buttons
  3. when i click on the button1 it should take me to a different screen but it has to have the tab bar at the bottom.
  4. when i click on the button2 it should take me to a different screen but again has to have the tab bar at the bottom.

I tried
1. presentModalViewController – but that just covers the whole screen
2. added the second screen as subview to the first screen. – This showed the second view that i wanted to see and also had the tab bar at the bottom. however it was not functional. meaning i had a scrollview etc embedded in the view that comes but none of that work when adding as subview
3. Navigation Controller – i thought this should be the way and again tried adding a new nav controller within viewdidload but the program crashes.

 @interface SettingsViewController : UIViewController <CLLocationManagerDelegate>
    @property (nonatomic,retain) UINavigationController * navigationController;

 - (void)viewDidLoad
{
    [super viewDidLoad];
    [self.view setBackgroundColor:[[ApplicationResources applicationResources]lightGreyColour]];
self.postCodeTextField.hidden = TRUE;
self.navigationController = [[UINavigationController alloc] initWithRootViewController:self];
   [self.view addSubview:self.navigationController.view];
//self.facebookSwitch
 }

So what is the solution? Thanks 🙂

  • 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-12T21:07:31+00:00Added an answer on June 12, 2026 at 9:07 pm

    presentModalViewController is exactly meant to cover the whole screen.

    It seems you want a navigation controller in each tab, so each tab has it’s own navigation stack. The trick is that you should add the navigation controller to the tab bar, and then your view controller to the navigation controller.

    tabbar
    |
    +- navigationController1
    |     |
    |     +- myViewController1
    |
    +- navigationController2
          |
          +- myViewController2
    

    From the code above, it seems you’ve missed the point that UIViewController already has a property named navigationController, so you shouldn’t declare it yourself.

    For setting up a navigation controller properly, see Tab Bar Application With Navigation Controller

    When myViewController1 is correctly inserted as the root view controller of navigationController1, then you can easily present subsequent viewcontrollers like this:

    //in myViewController1
    [self.navigationController pushViewController:myViewController3 animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering how I would go about performing a certain function if a
I would like 'about' to route to 'abouts/1' I tried this: match 'about' =>
Just a quick question about how you would go about implementing this. I want
I was wondering how one would go about developing a website from scratch with
Anyone have any idea how I would go about converting a timestamp in milliseconds
Lets say you have an normal song with two layers, one instrumental and another
How would I go about setting a session variable from the click of an
I would like to have an illustrative explanation about the difference between getValue() and
Any ideas how I would go about writing a javascript method to insert an
I would like to know how I would go about altering the HTML that

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.