views:

8

answers:

0

Hello,

for a better understanding of the following question, here's a little drawing that illustrates the structure of my App: http://grab.by/6jXh

So, basically I have a navigation-based App that uses NavigationController's "pushViewController" method to show Views A and B.

What I'd like to accomplish is to make a transition from view A to view B and vice versa. For example, the user presses the "A" button in the Main View, View A is pushed using the NavigationController. In this view, the user can press a button "Flip to B" and View B replaces View A on the NavigationController's stack (visually, this is done using a flip transition). If the user presses the "back" button on View B, the Main View is shown again. To save used memory, the View(Controller) that is not currently shown has to be dealloced/unloaded/removed.

What would be the appropriate way to do this? Do I need some sort of ContainerViewController or can it be done without?

Thanks.