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.
make the
ImportantViewControllerthe root view of aUINavigationController, you will present aUINavigationControllerinstead of the ImportantViewController,Now in ImportantViewController to present new view controller you will do the following