Inferis/ViewDeck — Issue #32: modal view controller not dismissing
Author: schemers
Created: 2012-02-05 18:03:44+00:00
State: open

looks like a recent changed changed the behavior of presentModalViewController to use viewDeckController if set, but doesn't also do the same for dismissModalViewControllerAnimated.

I have code that does:

[self presentModalViewController:navCon animated:YES];

and then later calls:

[self dismissModalViewControllerAnimated:YES];

which no longer dismisses the modal view controller, since it was actually presented on viewDeckController.

If the overridden presentMVC* uses viewDeckController, then dismissMVC* must also do the same.