views:

17

answers:

0

I have an Application.

I wish to push View controllers A, B, C, D and E in various arbitrary orders.

A is the Home page, so you could say it is the root, Super VC.

But any scenario could occur: A->B->C->B->C->D->A->B->C ... etc.

Is the UINavigationController the existing answer to my problems?

Keep in mind, my View controllers are completely custom, i.e. I'm not using a Navigation tool bar etc. And the current state of my Application is such that all VC's are being presented modally, and to the offense of the Software engineering God's, means that memory will run out quickly as the VC's pile up.

I'm just thinking of implementing my own basic version of a push/pop singleton stack that will release all VC's - 1 after X amount's of Pushes, or when the user selects home aka Viewcontroller 'A'.

Any (Constructive) thoughts, discussion an/or help is much appreciated!

~David van Dugteren