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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:51:39+00:00 2026-05-24T17:51:39+00:00

I have a HomeView with 1 button, that shows the login form. When the

  • 0

I have a HomeView with 1 button, that shows the login form.

When the user logs in, I create the tabbarcontroller with 3 buttons:
Home
Products
Exit

The thing is, if the user, already logged in, clicks on the home button, it will show HomeView and I need to hide the Login button and show a Exit button.

What I can’t find is the method to check the item clicked and the view loaded so I am able to work with the buttons.

I have both, Login and Exit buttons, created on Interface builder and linked with your actions and they are also referenced on the code.

Thanks in advance for any help.

  • 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-24T17:51:39+00:00Added an answer on May 24, 2026 at 5:51 pm

    you need somthing like that:

    BOOL isLoggedIn;

    if (isLoggedIn)
    {
       // do something, i.e. show Exit button
    } else
    {
      // do somthing else, i.e show Login button
    }
    

    You have to store the BOOL in something like a database or plist or singleton and set it to YES if the user pressed the Login button or NO if the user pressed the Exit button.

    Hope this helps

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

Sidebar

Related Questions

My task is create both login and registration form on one view! I have
I have a Navigation controller in my app that pushes my homeview on load.
So I have a web app that i'm working on with a form that
I have an action method VerifyNewUser() that gets called when the user clicks a
I have a tab bar in my application and that how I am customizing
I have a simple uiviewcontroller with 4 buttons. Every buttonclick event loads a different
I have a UIViewController which shows different UIViewController sub-classes. In the main UIViewController.m, I
Is it possible to have a UITabBar in such a way that the following
I have this simple MVC 3 application which simply has two controllers(Home and Edit),
Have an XML with next form: <categories someAttribute=test> <category id=1> <title></title> </category> <category id=1>

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.