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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:18:25+00:00 2026-05-25T01:18:25+00:00

I have a question about the correct way to switch views for an iPhone

  • 0

I have a question about the correct way to switch views for an iPhone app I am developing.

The simplistic application architecture is as follows. On opening app user is displayed with a login screen. The username and password authenticate via a webservice. If the user credentials are correct I would like to switch/move to a ‘menu’ view which will be the ‘home’ for further tasks performed by the user. i.e. they will branch out from this menu view and then once finished on the branches they can return to the ‘menu’ view.

I actually have this model working but I have a suspicion I am not coding it correctly for my needs. My code for switching view is…

MainMenuViewController *menuvc = [[MainMenuViewController alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:menuvc animated:YES];

Seeing as once the user has logged in the login screen is not needed, should I be using modal view functions? What alerted me to the fact that this may not be correct is that in the apple documentation it says that modal views should only be temporary, whereas I want the ‘menu’ view to be the home of the navigation.

I don’t want to use the built in UINavigation bars.

In addition should I and if so where should I be releasing menuvc i.e. call [menuvc release]. Also should I be releasing the login view now that I don’t need it anymore?

Thanks in advance
Andy

  • 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-25T01:18:26+00:00Added an answer on May 25, 2026 at 1:18 am

    You should be using a Modal View Controller for your login screen.

    The Main View Controller should be your “root”, then if the user isn’t logged in you present the modal login view.
    If the user IS logged in, then it will just show your Main VC with it’s navigation elements.

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

Sidebar

Related Questions

I have a question about how is the correct way of manipulate the initialization
I have a question about the correct way to handle errors in VBA in
I have a question about how to deploy WPF application into a PC without
I would like to ask a question about correct way of canceling socket operations
I have a question about when you distribute your app with an existing DB.
I have a question about the memory management. In my app delegate, I have
I have a question about organizing .resx files in mvc3 application. So far I
I have a question about righteous way of programming in Python... Maybe there can
So I have two questions about HashMap s in Java: What is the correct
I have question about NSView: Imagine a Custom View where the mouseDown, mouseDrag and

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.