IOS documentation for dismissViewControllerAnimated:completion: ::
If you consecutively represent several view controllers, the stack of view controllers represented by calling this method in the view of the controller below in the stack rejects its immediate view as the child controller and all view controllers above this child in the stack. When this happens, only the topmost view is rejected in the animated mode; any intermediate controllers are simply removed from the stack. The topmost view is rejected using its modal style transition, which may differ from the styles used by other view controllers below in the stack.
This means that while disabling the two modal view dispatchers with
[[[self presentingViewController] presentingViewController] dismissViewControllerAnimated:YES completion:nil];
the animation shown should be overridden by a higher modal view.
This is true in iOS 7 and earlier, but in iOS 8 the animation shown is not the best point of view (in my experience, this is the second top view). Is this behavior a bug in iOS 8 or am I doing something wrong?
James source share