I have a navigation problem. I want to create the following navigation structure:
Start on screen A. When a button is pressed, screen B animates up as a modal view controller, covering A. In the first scenario, when screen B is dismissed it slides down revealing screen C, which is a new modal view controller now covering screen A. When C is dismissed, it slides down to reveal screen A again. In the second scenario when screen B is dismissed it reveals modal screen D covering screen A.
My biggest problem is that I can’t find a way to display the model dialogs C or D behind B before it is dismissed, and until something takes place in B, I don’t know if I should be creating C or D, so I can’t parent B off of C to start with. Additionally, even if I could do that I can’t get the animations to work as I described in the problem statement.
Any ideas how I might make this scenario work?
It appears that this is not possible using the standard modal view controller scenario. The only solution I could find was to make this into a single view controller and use custom animations. Since this was not particularly desirable, we ended up changing the navigation structure.