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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:55:13+00:00 2026-06-18T11:55:13+00:00

The following seems like a typical use case: You start the app with a

  • 0

The following seems like a typical use case: You start the app with a LoginViewController that displays the login screen. Once the user has successfully logged in, you want to show the main view for your app (let’s call it MainViewController).

You don’t want to put the LoginViewController into a UINavigationController and subsequently push MainViewController onto it because there’s no reason to keep the LoginViewController present at the bottom of the stack since it will never be shown again. Also, in subsequent launches of the app, you’ll determine that you’ve already got a login token of some kind and will never end up showing the LoginViewController at all so there’d be inconsistency from launch to launch of the navigation controller’s stack.

You also don’t want to modally present MainViewController from LoginViewController for the same reason (if it’s modal it would keep the LoginViewController loaded behind).

You also don’t want to set the window’s rootViewController to MainViewController (where it was previously set to LoginViewController) because that won’t allow you have a transition.

I’d like some feedback on whether my logic above is flawed and in fact one of these scenarios is the right one? Or if not, what are others doing for this scenario?

  • 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-18T11:55:15+00:00Added an answer on June 18, 2026 at 11:55 am

    Why not make the MainViewController your app’s root view controller, and present the LoginViewController modally upon launch if you don’t have a login token?

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

Sidebar

Related Questions

I have the following code that seems like it should set my insertParameter but
I have the following line of jQuery but it seems like overkill to use
It seems like EasyMock tests tend to follow the following pattern: @Test public void
Following up to this question , it seems like Select-Object sets its input to
Why won't the following C code compile? It seems like it should just change
I can't believe that the following statement seems to be still true So, I
Consider the following scanning procedure in a typical document handling webapp: The user scans
I am newbie to Google app engine and Data nucleus. The following error seems
UPDATE: Seems like an issue of wkhtmltopdf not exiting properly I'm doing the following
This seems like a simple problem - I have the following html <div class=question

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.