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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:40:54+00:00 2026-05-23T18:40:54+00:00

Everyone I have a problem and I have been searching the solution but could

  • 0

Everyone
I have a problem and I have been searching the solution but could not find any. I am working on a tab bar based app. Problem is that I want to hide tab bar at first screen and then show it on all other screens that are being displayed after first screen.
Can anyone please give me the best solution for this problem?

Actual scenario is that I have a screen that is login screen. Now i dont want to show tab bar here as tab bar will be displayed only if the user is signed in. When user logs in, I want the tab bar to be displayed showing its contents.

Best Regards

  • 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-23T18:40:55+00:00Added an answer on May 23, 2026 at 6:40 pm

    If you have your Tab Bar Controller as your rootController, you can use rootController.selectedIndex =0 for selecting 1st Tab bar Item, and rootController.selectedIndex =1; and so forth.

    As soon as that particular view loads, you can load the other views in an array, and then add it to the rootController.selectedIndex and reloadInputViews with animation.

    Edit: (as per the comments)

    So you have a tab bar controller, and you want to show the introduction and the login screen while starting the App. If login is successful, you want to present the tab bar controller ! This can be done with ModalViewControllers

    1. In the ViewDidLoad of the view that loads up first, (it’s your first tab by default), add

      //Declare Introduction Screen//
      
      IntroductionController *introductionController = [[IntroductionController alloc] initWithNibName:@"IntroductionController" bundle:[NSBundle mainBundle]];
      
      //Give a navigation screen for your introduction screen and set it to introduction screen
      UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:introductionController];
      
      navController.title = @"Introduction";
      navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
      [self presentModalViewController:navController animated:NO];
      
    2. Now your introduction screen would load as soon as your first tab bar loads. But the loading is instantaneous, so it’s not visible to the user’s eye. Now reference your Login View Controller like @class LoginController and create an object LoginViewController *lvc;, and synthesize it. Now declare LoginButton and in the IBAction

      -(IBAction) loginAction: (id) sender{
      
       NSLog(@"I clicked Login");
      
       if (self.lvc ==nil){
          self.lvc = [[LoginController alloc] init ];
      
       }
      
       lvc.title = @"Login";
       [self.navigationController pushViewController: self.lvc animated:YES];
      
      
       }
      
    3. And in the LoginViewController, if Login is successful, just do

      [self dismissModalViewControllerAnimated:YES];
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi everyone I have been working on this particular problem for ages by now,plz
Yo everyone! I have been working on an Isometric Tile Game Engine in HTML5/Canvas
I have been working on a coding problem for some pages I inherited where
I've been messing with this all day and have still not found a solution.
I have a problem in my project with the .designer which as everyone know
Hi everyone my problem today is I have a couple of buttons that slide
hey everyone, here is the site SEE BELOW I have a slight jquery problem
Hie Everyone I have 1st time developed SSRS in my WPF application.. but there
Introduction : Hello Everyone, I have been looking for days for a way to
I've been researching this stuff and everyone seems to agree that the solution is

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.