I am new to iOS and wondering how to properly implement unloading / reloading the controller.
My application currently has a NavigationController with a MainMenuViewController (custom view controller) configured as a root view controller. Over the life of the application, new ViewControllers are popped / unloaded in the navigation controller. This works fine, the corresponding ViewControllers are initiated (from the NIB) the first time they are pushed onto the stack.
However, now I want to unload one specific ViewController when it popped up, and then reload it automatically when it is pressed again.
I added [self release] to this ViewControllers viewDidDisappear: and it is unloaded, but when I try to click this view again, I get a message sent to the error and reset the dealloc'ed error. So my questions are:
- Is this the right way to unload a popup ViewController?
- How to check if a given ViewController is loaded or not?
- How to force a reboot? Using
loadWithNib: then click on the navigation stack?
Hello,
Peter
source share