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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:40:34+00:00 2026-05-22T12:40:34+00:00

Hi guys I am working on an application.Where there is a home screen with

  • 0

Hi guys I am working on an application.Where there is a home screen with 5 buttons.On the click of every button i want to open the screen with tabbar with 5 view controllers.I mean when you click on the button the tabbar is opened.And there are back button on the tab bar view as well .On clicking the back button i want to pop back to the home screen and vice versa.
How to do that guys.Any tutorial ,links,sample code would be appreciated.

Thanks a lot to all

  • 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-22T12:40:34+00:00Added an answer on May 22, 2026 at 12:40 pm

    Tabbar controller in a navigation stack is complicated. Since each tab controller can have also navigation controller itself.

    Have a WindowManager class. It should own both
    – FirstViewController and
    – TabbarController

    All components and the UITabbarControllers themselves should be instantiated in the WindowManager class.
    Its init may have code like this, make similar for two tabbarcontrollers.

    self.tabBarController = [[UITabBarController alloc] init];
        self.controllers = [[NSMutableArray alloc] init];
    
    // initialize the view controllers and navigation controllers for the tab bar
    
    self.friendsVC = [[FriendsVC alloc] initWithNibName:@"FriendsView" bundle:nil];
    UINavigationController *friendsNVC = [[UINavigationController alloc] initWithRootViewController: friendsVC];
    friendsNVC.navigationBar.barStyle = UIBarStyleBlack;
    [controllers addObject:friendsNVC];  
    [friendsNVC release];
    
    self.paymentsVC = [[PaymentsVC alloc] initWithNibName:@"PaymentsView" bundle:nil];
    UINavigationController *paymentsNVC = [[UINavigationController alloc] initWithRootViewController: paymentsVC];
    paymentsNVC.navigationBar.barStyle = UIBarStyleBlack;
    [controllers addObject:paymentsNVC];
    [paymentsNVC release];  
    
    tabBarController.viewControllers = controllers;
    tabBarController.selectedIndex = 0; 
    tabBarController.delegate = self;
    
    self.view = tabBarController.view;
    

    In the WindowManager, you can have two methods like,

    [WindowManager showViewController] and
    [WindowManager showTabbarController].
    
    - showViewController {
      //Initiate View controller and use [self.window addSubView:vc.view];
    }
    
    - showTabbarController {
      // initiate the tabbar manager
    }
    

    You can have a “back” button on top of your first tabbar controller left side, to call the

    [WindowManager showViewController];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys, I'm working on a status-Updater. It works, there is just one problem,
guys! I've got 2 forms in application - working form (frmMain) and form of
I am working on an iPad application and need some help from you guys.
I am working on a swing application using JinternalFrames but when i open one
hey guys i am working on android application , i am trying to creat
Hi guys so I have written my play application and all is working fine.
hey guys im working on a task to make my story's links like this
The guys I'm working with use Eclipse as their IDE and I'm using Sublime.
Hi guys I have my endless page js code working great but for some
Hey guys, I was working on a simple chat program to brush up on

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.