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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:39:13+00:00 2026-05-22T22:39:13+00:00

I am working on a navigation based application which involves LOGIN view. My approach

  • 0

I am working on a navigation based application which involves LOGIN view.
My approach to deal with the same navigation hierarchy (which was taking back to the login page)was

  • Use two navigation controllers

  • as soon as the user logs in create a new navigation controller

    • assign the new view controller’s root to the post login view

      someViewController.navigationController = [[[UINavigationController alloc]initWithRootViewController:someViewController ] autorelease];
      
    • assign this navigation controller to the window:

      MYAppDelegate *appDelegate = (MYAppDelegate *)[[UIApplication sharedApplication] delegate]; 
      

      appDelegate.navigationController = someViewController.navigationController;

      UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      [window  addSubview:someViewController.navigationController.view];
      [window  makeKeyAndVisible];
      

-finally push the “someViewController” to stack.

    [self.navigationController pushViewController:someViewController animated:YES];

ALL WORKING FINE TILL NOW..

outcomes:

  1. the someViewController’s navigation controller is the new navigationController for the complete app and there is no way to go back to LOGIN view.

  2. I am able to push new ViewControllers to the stack and navigate to and fro upto next level.

PROBLEM :!!

“I am only able to push new ViewControllers to the stack and navigate to and fro. up to the next level and not further…”

say:

(newroot)master–>subordinates–X->details. // i am not able to navigate to 3rd level.
(newRoot)subordinate–>details.

what else I have tried before posting?

  1. tried simply setting the root of the same navigationController to the POST-LOGIN ViewControlller

    issue: it din’t worked either.

please guide
Thank you in anticipation.

  • 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-22T22:39:14+00:00Added an answer on May 22, 2026 at 10:39 pm

    Try the following way, take a navigationController in appDelegate say navController
    In loginViewController, after you login success,

    HomeViewController *svc=[[HomeViewController alloc]initWithNibName:@"HomeViewController" bundle:nil];
    
                appdelegate.homeViewController=svc;
    
                appdelegate.navController.navigationBarHidden=YES;
                appdelegate.navController=[[UINavigationController alloc] initWithRootViewController:appdelegate.homeViewController];
                [appdelegate.window addSubview:appdelegate.navController.view];
    
                [svc release];
    

    then you can remove login screen as [self.view removeFromSuperview]; if added as subView

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

Sidebar

Related Questions

I am working with a navigation application. I have a homeViewController with two views(accept,
I have a simple iPhone app based on a navigation controller. There are two
I am building a large hierarchical iPhone application with multiple screens controlled by a
I'm currently working on a website that you'll find here: http://steadfastdesignfirm.com/rgw/ . I used
I am using Navigation framework and basicly got one frame that is used for
On this site: http://jumpthru.net/newsite/vision/ I am using CSS sprites for my navigation with PHP
When I try to position #slider, the navigation and everything above it also positions.
I have a box on the site of my page layout that displays the
Could you help me with this question, please? I only need to put a
I am developing a iphone/ipad app. Problem is that when i change the orientation

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.