If you issue a memory warning in the simulator (see the menu), this will cause a call for any view controller attached to a view that is not visible.
This is because, by default, view controllers are registered for memory warning notifications, and any view that is not currently in use will be unloaded by the view controller - there is a viewDidUnload method so that you can clear anything you want to save additional memory (or if you saved some IBOutlets to free memory that would otherwise be released when the view is unloaded).
Generally, any IBOutlets that you release in dealloc should also be freed (and the links are set to zero) in this method.
Kendall Helmstetter Gelner Aug 17 '09 at 2:29 2009-08-17 02:29
source share