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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:09:08+00:00 2026-05-18T10:09:08+00:00

I have a tab bar application with a navigation controller and view controllers inside

  • 0

I have a tab bar application with a navigation controller and view controllers inside it. This is how it’s laid out.

Tab Bar 1
- Navigation Controller
-- Root View Controller
-- Other view controller

Tab Bar 2
- Navigation Controller
-- Root View Controller

What I want to do is when I navigate to the Other view controller in Tab Bar 1, then I switch to Tab Bar 2, I want the Tab Bar 1 to return to its Root View Controller.

The behavior I’m looking for is similar to the iPod App. Any help is appreciated. 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-05-18T10:09:08+00:00Added an answer on May 18, 2026 at 10:09 am

    It sounds like you’ve started out with the ‘Tab Bar Application’ template so most likely your app delegate is also a delegate for your UITabBarController. UITabBarControllerDelegate has this method:

    - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController

    In this method you would check to see if ‘viewController’ is your first navigation controller and if it is, set the navigation controllers viewControllers property to an array of the child view controllers with root view controller at index 0.

    - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
    {
        if (viewController == firstNavController)
            viewController.viewControllers = [NSArray arrayWithObjects:rootViewController, otherViewController, nil];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have an application that embeds a Navigation Controller inside a Tab Bar
I have a tab-bar and navigation controller application (like Youtube app or Contacts app).
I have a tab bar along with navigation controller iphone application. Now I need
i have an app with tab bar and a navigation controller inside every tab.
I have an application with a tab bar controller and each view contains a
I have a tab bar application and when I display a modal view controller,
I have an application with a tab bar as the root controller. I have
I have a tab bar application. Each tab contains navigation controller allowing the user
I have a tabbar application. And the item of first tab is Navigation Controller.
i have a tab bar application, now what i want to do is to

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.