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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:07:25+00:00 2026-06-07T22:07:25+00:00

I have UINavigationController and several UIViewControllers pushed into it. What I’d like to implement

  • 0

I have UINavigationController and several UIViewControllers pushed into it. What I’d like to implement is to pop let’s say 2 view controllers back. However I’d like the previous controller in the stack be shown with animation before getting to the desired one (going thru it). This is the main reason why popToViewController: does not work for me.

Another thing I tried to call popViewControllerAnimated: with setting a flag to all previous UIViewControllers so that if flag is set, the view controller will invoke popViewControllerAnimated: in its viewDidAppear:. This gives me almost what I want, however I don’t like the animation is not smooth. Animation slows down for each controller, while I want all of them passed at the same speed.

One more approach I’m thinking is to avoid these controllers and put everything into one scroll view, which would give me total control of how to make view transactions.

Still I wonder if there’s something I can do with navigation controller?
Thank you for help.

  • 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-07T22:07:27+00:00Added an answer on June 7, 2026 at 10:07 pm

    I doubt You will achieve smooth animation (maybe if you implement different function, rather than viewDidAppear: – then you can probably achieve it – for example – you have 3 viewControllers in stack – you pop third, and in the same time initiate pop for second, with a delay which is as long as pop animation (0.25? dunno, test it). (you access second one from third via [self.navigationController viewControllers]) Maybe that works).

    I dont really like the idea about all viewControllers (views) in a scrollview. – It could be too much memory consuming. Could.

    Other option would be – store a screenshot from each viewController. If only smooth poping animation is required, then you can take a screenshot from each viewController (on background thread while viewController is opened.) and add it to global scrollview imageSet. Then when popping – shortly show that scrollview, and animate through images, while under scrollview, viewControllers have already been popped to necessary viewController.

    (If some viewController content is changed dynamically – it may not be important, as user won’t notice that from already taken screenshot which slides fast)

    Hope you got some new ideas 🙂

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

Sidebar

Related Questions

I've designed and build game based on UINavigationController. I have several ViewControllers like on
Say I have two UIViewControllers , all working under a UINavigationController : RootViewController hosts
Suppose I have a storyboard with a navigation controller and several view controllers. All
I have a UINavigationController that pushes a view controller 3 levels down. I am
I have a uinavigationcontroller with 2 views. In the second view I have some
I have a UINavigationController inside a UITabBarController. I'm presenting a sort of popover view
I have a UINavigationController that has a UIToolbar on the bottom. Several of my
I have UINavigationController based app with two views. On the first view there is
In my app I'm implementing UINavigationController . There are several UIViewControllers that are being
In my mainWindow.xib, I have this setup. 1) UINavigationController containing several viewControllers. 2) UIViewController

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.