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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:26:42+00:00 2026-05-22T18:26:42+00:00

Upon login, I would like to program so that it shows the first tab.

  • 0

Upon login, I would like to program so that it shows the first tab. It does that when I first run the app but when I logout and log in again, it shows the second tab which is where the logout option is.

Is there a line of code where I could put which ensures the first tabbar item to be loaded everytime the user logs in?

Thanks in advance.

  • 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-22T18:26:43+00:00Added an answer on May 22, 2026 at 6:26 pm

    When the user logs out, or when the application closes, you should call this code:

    [tabBarController setSelectedIndex:0];
    

    This will enable you to force the UITabBarController to selected the first tab.

    Update

    You can get the UITabBarController instance from the UI application delegate. Eg. using the standard tab bar sample application:

    MyAppDelegate *app = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
    UITabBarController *tabBarController = app.tabController;
    

    where MyAppDelegate is the name of your id<UIApplicationDelegate> class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Upon a click on an IMG, I would like to get to the next
I would like to see a simple Login Application, not as simple as this
Upon AD Import for SharePoint, MOSS does this automatically: Office SharePoint Server 2007 automatically
Scenario: I have an application (C#) that expects a SQL database and login, which
I have to make an architectural decision for an application and would like to
I have this html: <div id=signbtn> <a id=login-link class=btnsignin title=Login>Sign in</a> </div> Upon successful
Upon page load I want to move the cursor to a particular field. No
Expanding upon my earlier problem , I've decided to (de)serialize my config file class
Once upon a time I read how you detect programmatically for mounted NTFS folders
I have a page upon which a user can choose up to many different

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.