ViewController Navigating

Posted by Kobe.o4 on Stack Overflow See other posts from Stack Overflow or by Kobe.o4
Published on 2012-07-01T15:08:23Z Indexed on 2012/07/01 15:15 UTC
Read the original article Hit count: 172

Filed under:
|
|

I have 4 ViewControllers, startViewController as the initial View Controller. This contains my intro. After its finish, it will [self presentViewController:vc animated:YES completion:NULL]; into my menuViewController.


startViewController ------> menuViewController ------> C1ViewController
                                          \
                                           \ ------> ImportantViewController

In my menuViewController are buttons for the two ViewController like the above illustration. Also I presented them in the View with this: [self presentViewController:vc animated:YES completion:NULL]; I return tomenuViewController with this [self dismissModalViewControllerAnimated:YES];

What I wanted is to make the ImportantViewController to be the like the parent view or the mainVIew even if I go to other Views. What I need is when ImportantViewController is presented when I go to either C1ViewController or menuViewController it wont be deallocated, or its content there will still be retained.

Is it possible? And How?

I don't know much about what parent and child view controllers for so I dont know what to implement in my problem. Thank you.

BTW, Im using Storyboard.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios