2

I have a the following view controller stack: A -> B (presented modally) -> C (presented modally). My objective is to dismiss C and B AND the animation I want is that C slides down to reveal A.
With both answers listed here below, the animation you'll see is that C disappears and the B slides down -- which is not the desired animation.

Dismiss two modal view controllers

How to Dismiss 2 Modal View Controllers in Succession?

Community
  • 1
  • 1
MobileDev
  • 3,750
  • 4
  • 32
  • 35

1 Answers1

0

Have you try:

ViewController1.dismissViewControllerAnimated(true, completion: nil)
ViewController2.dismissViewControllerAnimated(true, completion: nil)

by default, the animation is "slide down", otherwise you can customize to however you want.

Giraffe
  • 149
  • 1
  • 8
  • you would get two animations with your code. the desired animation is one -- specifically `C` slides down to reveal `A` – MobileDev Sep 19 '16 at 21:07