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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:24:40+00:00 2026-06-05T18:24:40+00:00

I have a tab bar along with navigation controller iphone application. Now I need

  • 0

I have a tab bar along with navigation controller iphone application. Now I need another MainView before this tab bar view is shown..please help me in doing so.

When i use navigationController for the MainView and display it using

self.window.rootViewController = self.navController;

instead of earlier used

self.window.rootViewController = self.tabBarController;

then i get the MainView, but in other views the tabbars are not shown. The navigation to other view is done through button on this MainView
Could any one explain me how would i get this done..i.e. a main view (without tab bar) and the next views all be with tab bars

  • 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-05T18:24:41+00:00Added an answer on June 5, 2026 at 6:24 pm

    In App Delegate Method add MAinView in Navigation Controller and then add to window:

     - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
     {
       MainView *objMV = [[[MainView alloc]init] autorelease];
       UINavigationController *mainNavController = [[UINavigationController alloc]initWithRootViewController:m_objMV];
       [self.window addSubview:mainNavController.view];
       [self.window makeKeyAndVisible];
       return YES;
     }
    

    Now button’s click event which is present in MainView its method is below:

     -(IBAction)yourBtnAction:(id)sender
    {
      [UIView beginAnimations:nil context:nil];
      [UIView setAnimationDuration:1.0];
      [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.window cache:NO];
      [UIView commitAnimations];
    
      [mainNavController.view removeFromSuperview];
      [m_mainNavController release];
    
       // Your tab bar controller instance ie tabBarController 
    
      [self.window addSubview:tabBarController];
      [self.window makeKeyAndVisible];
     }
    
    • 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 with a view inside a navigation controller. One
I have developed an iPhone application based on Tab bar & Navigation bar and
I have a tab bar controller (its a tab bar based application, so tab
I have a tab based application with a navigation controller in it. When i
I have a Tab Bar with a navigation table view. My app crashes when
I have an application with a tab bar as the root controller. I have
I have a tab bar controller with this code - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return
I have a Tab Bar application and in there I have a Navigation Bar
I have a Tab Bar controller inside a Navigation controller. I want to create
I have a tab bar application with three tabs. In my second tab view

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.