The method viewDidUnload
will only be called when you have a memory warning not when the view is out of the screen, for this you probably will want to use viewDidDisappear:
or viewWillDisappear
For a better explanation of the viewDidUnload method you can take a look at this question: When is UIViewController viewDidUnload called?
So you probably did not need to care when your viewDidUnload is called, only that it do what it need to do. Also that you are taking care of what you need to take care in viewDidDisappear:
or viewWillDisappear
.
Force the unload is probably not the best way to take care of that, maybe if you have a lot of logic in this method you need to change it to some other method. Do not worry about call the release or dealloc, just be sure that you do not have circular references in your project, and also that you are using the weak and strong references appropriately so the arc will work well.
Hope it help you!