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.
Asked
Active
Viewed 228 times
2
1 Answers
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