There's a UIViewController
method -(void)viewDidUnload
. I tried putting NSLog("unloaded");
in there to see when the view is unloaded, but nothing was printed to the console.
Where do I put my code, so that before a view unloads I can perform an action?