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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:46:06+00:00 2026-05-26T00:46:06+00:00

So I have four view controllers, A, B, C, D and they are shown

  • 0

So I have four view controllers, A, B, C, D and they are shown in that order. Let’s say that I am at view C and I want to go to view D, so I push view controller D into the navigation controller stack, however, what I want is that when D tries to go back it goes directly to view controller B instead of C.

Is there a particular way to achieve this? The logical way is to do popViewController and then pushViewController: C. I tried this and it didn’t work out.

  • 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-26T00:46:07+00:00Added an answer on May 26, 2026 at 12:46 am

    So the order is A->B->C->D right? And from D, when the “Back” button is tapped you want to go to B?
    That means popping D and then popping C so you get back to B. That’s what popToViewController:animated: does.
    UINavigationController Class Reference

    popToViewController:animated:

    Pops view controllers until the specified view controller is at the
    top of the navigation stack.

    Note that this is different from popToRootViewControllerAnimated:

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

Sidebar

Related Questions

Let's say I have four tables: PAGE , USER , TAG , and PAGE-TAG
I have a UITabBarController with four view controllers. Two of those need to be
I have an iPad application that can be used in all four view modes
I have an TabBar application with 4 tabs. All four tabs have navigation controllers.
I have several subviews that are controlled by a navigation controller. One of them
So I have programatically created a tabbarcontroller that uses navigation controllers(based on Jeff Fithian's
Ok heres the situation. I have a View controller class that serves as the
I have four tabs that hold four listviews, I want to set a background
I have an admin view which contains four foreign keys each with a few
I have four tables containing exactly the same columns, and want to create a

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.