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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:29:59+00:00 2026-06-13T17:29:59+00:00

I am doing an app in which on startup of App,a tabbarController with Search

  • 0

I am doing an app in which on startup of App,a tabbarController with Search and Login views will be presented.When I click on Search tabbaritem SearchView wil appear.When Login tabbaritem is clicked Login view will appear ..When the Login is successful a tabbarcontroller with Four tabbaritems(Search,MyProfile,MyActivities,Logout)will appear.Now when I click on logout I have to logout of the account and I need to show again the startup view.

Any help would be appreciated..

  • 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-13T17:30:00+00:00Added an answer on June 13, 2026 at 5:30 pm

    its related with your application architecture. i would like to divide your question :

    I m pretty much new to objective-C and I m doing an app in which on startup of App,a tabbarController with Search and Login views will be presented.

    Reply: Initially you need to have a navigation controller in the AppDelegate which will work like a parent navigation controller and you need to add your tabbar controller as a rootviewcontroller to it, it will help to get out of the second tabbar controller when you want to logout.

    When the Login is successful a tabbarcontroller with Four tabbaritems(Search,MyProfile,MyActivities,Logout)will appear

    Reply: Now when you get logged in then you will push a new tabbar controller with 4 tabs, it will get pushed on the parent navigation contrller (that we created in app deleate) .

    Now when I click on logout I have to logout of the account and I need to show again the startup view

    Reply: Now when you want to logout and after doing all the logout related stuff(like closing the session etc) if you want to pop the view controller like [self.navigationController popViewController] it will not going to help you. as the self.navigation controller is the navigation controller of the new tabbar (of 4 tabs, that you pushed after login ). So you need to access the parent navigation controller here, which we created in app delegate into the Logout view controller, like : [appDelegate.navController poptoRootViewController] .

    So the important point here is you need to have access and control over the parent navigation controller.

    Hope this helps.

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

Sidebar

Related Questions

I am doing small Silverlight app which will allow users to Create orders. I
I am doing some initial testing for a Rails app which will be deployed
I am doing an app based on tabbarController. I have a 3 tabbar items.
I'm designing quite a large App and on startup it will create sessions with
I have an app which has to load some data at startup, so I
I keep getting System.OutOfMemory exception in my WinForms App which is thrown while doing
My app (which uses MySQL) is doing a large number of subsequent upserts. Right
I just started doing my first Android app which happens to be an RSS
I have a small app which runs in background doing some tasks which basically
I'm creating a test which will perform some stress testing of the app which

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.