In new iOS 6, viewDidUnload
is deprecated and we have been instructed to use didReceiveMemoryWarning
instead, to manage objects in UIViewController instances and subclasses. Is it equally effective to assign nils to UIView kinds inside didReceiveMemoryWarning
like the way it has been done inside viewDidUnload
?
I am asking this because these two methods seems to be working differently. It seems like didReceiveMemoryWarning
doesn't guarantee viewDidLoad
to be called again to re-instantiate any necessary UIViews.
I suspect with iOS 6, memory management is done without requiring to manually deallocate UIView. Please help me to know what I have missed in understanding the lifecycle of UIViewController.