Hello!
In my iPhone application I have two view controllers that I want to present modally. There is a root controller that presents the first one (say A), and then A presents the second one (say B). Then I want to dismiss both A and B at once, which I do by calling the dismiss…
method from the root controller. The documentation states that in this case the whole stack of controllers gets dismissed, both A and B. Both controllers really disappear from the screen, but when I inspect A, its modalViewController
property is still set and when I later try once more to present B from A, nothing happens. I solved this situation by calling dismissModalViewControllerAnimated:NO
on A before I present A on screen, but that’s a hack, not a real solution. What’s going on, what am I doing wrong?