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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:25:40+00:00 2026-05-15T23:25:40+00:00

this is my flow navA-> navB->navC then when user press NavC back button he

  • 0

this is my flow
navA-> navB->navC then when user press NavC back button he goes to navA

but when user again press navA he should go to navB but its going on navC I don’t know why

in navC i did this

XMLAppDelegate *appDelegate=(XMLAppDelegate*)[UIApplication sharedApplication].delegate;
    [self.view removeFromSuperview];
    [appDelegate.window addSubview:appDelegate.preLoginNavController.view];

and in navA i am doing this to go to navB
//this is preLoginNavController.m
XMLAppDelegate appDelegate=(XMLAppDelegate)[UIApplication sharedApplication].delegate;

    //appDelegate.RootNavController.shouldHasBackButton = YES;
    [self.navigationController.view removeFromSuperview];
    [appDelegate.window addSubview:appDelegate.navigationController.view];//[navigationController view]

and in appdidfinish()

[window addSubview:[preLoginNavController view]];
    [window makeKeyAndVisible];**strong text**

Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘Pushing a navigation controller is not supported’ thats why i am using this a

appDelegate.newsNavController.shouldHasBackButton = YES;
 [appDelegate.window addSubview:appDelegate.newsNavController.view];

do I need to push in the method defined by you or I can use in between while adding subview??

like

AccountApplication* controller = [[AccountApplication alloc] initWithNibName:@"AccountApplication" bundle:nil];
        //      [self.navigationController pushViewController:controller animated:YES];
        //      [controller release];
  • 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-15T23:25:41+00:00Added an answer on May 15, 2026 at 11:25 pm

    Try to use the push/pop methods of UINavigationController:

    - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
    - (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
    

    instad of adding and removing views from your app window

    UPDATE:

    You can create your own UINaviagtioNController in your appDelegate:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    // Override point for customization after app launch
    
    UIViewController *rootViewController = [[UIViewController alloc]init];
    navigationController = [[UINavigationController alloc]initWithRootViewController:rootViewController];
    [rootViewController release];
    
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    return YES;
    

    }

    with navigationController as @property.

    Try to create a new “Navigation-based Application” or a “Tab Bat Application”.

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

Sidebar

Related Questions

My program flow is like this: I need to sequential processing per user's request
I have this flow but don't know how to deal with it. I think
I keep studying this flow of the Facebook's bigpipe technique but I have this
In this flow the HTTP inbound is configured with request-response. But I still dont
I am trying to make a flow chart with HTML and CSS but its
I've got this flow on an enterprise application: on every service page there is
How to pass information in this flow: Flash(AS3) -> PHP, using XML -> Database(mysql)
Why gose to image's flow This is code: <p><img class=left width=95 height=64 src=# />
I have jmeter flow like this: ThreadGroup --Sampler to get the number of items
I have this web application using Spring Web Flow framework. In my main page

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.