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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:39:40+00:00 2026-06-11T05:39:40+00:00

Follow up question on this one Say my app has several ViewControllers , let’s

  • 0

Follow up question on this one

Say my app has several ViewControllers, let’s call them A,B,C,D. Usually moving back one step, i.e. from D -> C, would be using the back button in the NavigationBar or via code with the line

[self.navigationController popViewControllerAnimated:YES];

What I want to do is going back several steps, like from D -> B. This would be done with

[self.navigationController popToViewController:B animated:YES];

Unfortunately this way I can’t decide which animation to use. Instead of the default animation I have to use a Flip animation.

The only way to do this I found was this method

[self.navigationController transitionFromViewController:self.navigationController.presentedViewController toViewController:B duration:300 options:UIViewAnimationOptionTransitionFlipFromRight animations:nil completion:nil]; 

Is this the only way to achieve this or can anyone suggest a better way to do it?

  • 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-11T05:39:41+00:00Added an answer on June 11, 2026 at 5:39 am

    With reference from your comments….

    ” sounds right, but where would I define that it’s supposed to be a flip animation? As far as I can see this still uses the default animation. – taymless “

    you need to perform the animation means you use this block of code….

      -(void)animatefromView:(UIView*)fromView toBlock:(void (^)(void))block // note block may be any executable code...
        {
            [UIView beginAnimations:nil context:NULL];
            [UIView setAnimationDuration: 1];
            [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:fromView cache:NO];
            block();
            [UIView commitAnimations];
    
        }
    

    and the method call will be….

    [self animatefromView:self.navigationController.view toBlock:^{ 
            [self.navigationController pushViewController:ani animated:NO];
                                                                        }];
    

    i hope this will help you…

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

Sidebar

Related Questions

Just a follow up question to this one here => link Is it possible
This is a follow-up question to this one . Consider this example: #include <iostream>
I have a follow-up question to this one . I created a new form,
This is like a follow-up question to this one . Basically what I'm doing
I have a follow up question to this one . Now that I have
This question is a follow on from this one ... I am binding to
This is a follow-on question from the one I asked here . Can constraints
This is really a follow on question to a previous one , where I
This is a follow up question to this one: Query examples in a many-to-many
This is a follow on question to an earlier one. I have learned some

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.