normally you would release the hidden views, but I don't think this is possible for views belonging to a navigation controller.
you can write for each of your view controllers a releaseContent function where you release all the subviews/images of the view, but not the view itself.
similarly you write an allocContent function for each view.
then you call the releaseContent function when another view gets pushed on top and call the allocContent function when the view reappears.
|