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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:31:56+00:00 2026-06-04T17:31:56+00:00

I am developing a tabBar application where i am preseting the login page as

  • 0

I am developing a tabBar application where i am preseting the login page as a modalviewcontroller. Later after logging from the page, i am displaying the TabBar. In one of the Tab i have my LogOut View controller where i want to logout and inturn re-direct the application to the login page. I need to remove all the loaded data and then re-Login with the entered data when i re-Login again. I have searched a lot but not able to find any help on this. Can someone please help me in how to implement this functionality?

  • 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-04T17:31:57+00:00Added an answer on June 4, 2026 at 5:31 pm

    if you are displaying login view as modelview, then no problem. you can do this again when your user successfully login out. just show the login page by presenting it again.

    but my suggestion is that you should make the login as root view of your app and check in app delegate that if user is already logged in then refer to your main page of app else refer to the login page. and at the logout button, jst pop to login view controller. which is root view controller

    if([[DataModel sharedDataModel] getValueForKey:USER_SESSION_ID]!=nil)
    {
    objLoginController=[[LoginController alloc] initWithNibName:@”LoginController” bundle:nil];

        UINavigationController *temp=[[UINavigationController alloc] initWithRootViewController:objLoginController];
        self.mNavigationController=temp;
    
        [temp release];
        [objLoginController release];
        objLoginController = nil;
    
    
        if(objHomeController==nil)
        {
            objHomeController=[[HomeController alloc] initWithNibName:@"HomeController" bundle:nil];
        }
    
        [self.mNavigationController pushViewController:objHomeController animated:NO];
    
        [objHomeController release];
        objHomeController=nil;
    
        [mNavigationController setDelegate:self];
        mNavigationController.navigationBar.hidden=TRUE;
        [self.view addSubview:mNavigationController.view];
    }
    else
    {
        objLoginController=[[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];
    
        UINavigationController *temp=[[UINavigationController alloc] initWithRootViewController:objLoginController];
        self.mNavigationController=temp;
    
        [temp release];
        [objLoginController release];
        objLoginController = nil;
    
        [mNavigationController setDelegate:self];
        //mNavigationController.navigationBar.hidden=TRUE;
        //[mNavigationController setNavigationBarHidden:NO animated:YES];
        [self.view addSubview:self.mNavigationController.view];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a tab bar application. I have five tabs in it. For
I am developing a tab Bar based Application.On a particular view controller I have
I'm developing an application based on the Tab Bar application preset. In one of
I am developing a Tab Bar Application in which My need like I Have
Iam developing one application.In that iam placing the radio buttons(uiimageview) on table view and
Hi i am developing a TabBar application which consists of four tabs. Whenever the
Developing an MVC application, i now need to have test other browser versions. Installed
In developing my current iPhone application, I'm having issues handling the login, logout functionality
I am developing an iPhone tabbar application with 5 tabs . I want to
I am currently developing an iPhone application which loads data from an RSS feed

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.