Setting IBOutlets
to nil
in viewDidDisappear
releases nothing as these will all still be retained by the view
.
You could release your other objects though, and then recreate in viewDidAppear
but it's hard to understand why you would want to, just do it when asked in the didReceiveMemoryWarning
method.
Declare your IBOutlets as weak and let the system decide when to release the view (and the outlets along with it) when it needs to.
Release any other objects you want to drop in low memory conditions inside the
didReceiveMemoryWarning
method. Once again the system decides when this is needed.