ios - Moving to any of several view controllers from any of the others -


the app developing has 5 view controllers.

lets call them a, b, c, d, , e, root view controller.

a have 4 buttons navigate each of other view controllers. similarly, b, c, d, , e have 4 buttons each navigate other view controllers.

is idea to use presentviewcontroller: implement navigation, since there no clear hierarchy in relationship of view controllers? don't think understand presented vs presenter relationship.

does dismissal of presented view controller have handled presenter?

suppose presents b, , b presents c, , c presents a. of controllers released/dismissed? handling dismissal? when presented, b still in memory?

the other approach thought of design , write view controller container , manage view controllers. have read not easy territory walk on.

which of these makes more sense?

you can use uinavigationcontroller push new controllers stack. if don't want user go (it means not keeping old view controllers in stack) can set newly allocated view controller root vc:

-(void)buttonapressed:(uibutton *)button {     aviewcontroller *vc = [[aviewcontroller alloc] init];     self.view.window.rootviewcontroller = vc; } 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -