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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:34:43+00:00 2026-05-20T14:34:43+00:00

I want 2 navigation Controller to be attached to one Tab bar item. Basically

  • 0

I want 2 navigation Controller to be attached to one Tab bar item.

Basically the idea is to have 2 views on a single tab Item and there should be a navigation bar to push and pop the screens. (same like settings application in iPad).

edited======

It will look like on left hand side there is a View with its own navigation Controller and on right hand side there is another View with its own navigation controller(or some other UI) to achieve the Push Pop stuff.

I know how to attach 1 navigation Controller to one Tab bar Item.

Edited For ModalView Issue:-
by implementing conmulligan code everything works property. But if I try to display some ModalViewController in lansdscape mode and when I try to close this ModalView the FirstViewController navigationbar becomes portrait(along with its View) and SecondViewController NavigationBar remains landscape(at it should be). This happens only in Device not in simulator.

Below is my Code of presenting the ModalViewController.

ModalTableViewController *modalTableViewController = [[ModalTableViewController alloc]initWithNibName:@"ModalTableViewController" bundle:[NSBundle mainBundle]]; 
UINavigationController *localNavigationViewController = [[UINavigationController alloc] initWithRootViewController:modalTableViewController];
localNavigationViewController.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:localNavigationViewController animated:YES];
[modalTableViewController release];
[localNavigationViewController release];

For Dismising the ModalViewCntroller I do it as below:-

[self dismissModalViewControllerAnimated:YES]; 

Waiting for your replies.enter image description here

  • 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-20T14:34:44+00:00Added an answer on May 20, 2026 at 2:34 pm

    One way would be to create a UIViewController subclass that contains two navigation controllers and add that to the UITabBarController. Here’s how you’d create and layout the navigation controllers in the UIViewController‘s -viewDidLoad method:

    FirstViewController *firstViewController = [[FirstViewController alloc] init];
    UINavigationController *firstNavigationController = [[UINavigationController alloc] initWithRootViewController:firstViewController];
    [firstViewController release];
    
    SecondViewController *secondViewController = [[SecondViewController alloc] init];
    UINavigationController *secondNavigationController = [[UINavigationController alloc] initWithRootViewController:secondViewController];
    [secondViewController release];
    
    firstNavigationController.view.frame = CGRectMake(0.f, 0.f, 320.f, self.view.frame.size.height);
    firstNavigationController.view.autoresizingMask = UIViewAutoresizingFlexibleHeight;
    
    secondNavigationController.view.frame = CGRectMake(321.f, 0.f, self.view.frame.size.width - 321.f, self.view.frame.size.height);
    secondNavigationController.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth |
                                                       UIViewAutoresizingFlexibleRightMargin;
    
    [self.view addSubview:firstNavigationController.view];
    [self.view addSubview:secondNavigationController.view];
    

    This is more or less how the UISplitViewController works under the hood.

    Edit: you might need to add the following code to make sure it lays out properly:

    - (void)viewWillAppear:(BOOL)animated { 
        [super viewWillAppear:animated];
        [firstNavigationController viewWillAppear:animated];
        [secondNavigationController viewWillAppear:animated];
    }
    
    - (void)viewWillDisappear:(BOOL)animated { 
        [super viewWillDisappear:animated];
        [firstNavigationController viewWillDisappear:animated];
        [secondNavigationController viewWillDisappear:animated];
    }
    
    - (void)viewDidAppear:(BOOL)animated { 
        [super viewDidAppear:animated];
        [firstNavigationController viewDidAppear:animated];
        [secondNavigationController viewDidAppear:animated];
    }
    
    - (void)viewDidDisappear:(BOOL)animated { 
        [super viewDidDisappear:animated];
        [firstNavigationController viewDidDisappear:animated];
        [secondNavigationController viewDidDisappear:animated];
    }
    
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
        return 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 controller inside a Navigation controller. I want to create
I want to have a TabBar controller inside a navigation controller. So that when
I have a navigation controller which also has a table view. I want to
I have a navigation view controller and I want a subview ( just a
I have a navigation view controller and I want a subview to slide on
so basically in my app delegate i have a navigation.controller This navigation controller has
I have a query regarding use of navigation Controller and tabBarController together. I will
i want change title's color of navigation controller but i dont know why doesn't
I want to make a back button for a navigation controller with the title
I want to disabled the default back button of navigation controller self.navigationItem.rightBarButtonItem.enabled = NO;

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.