This is with reference to the documentation for the apple: -
viewDidUnload: -
When a low memory condition occurs and the views of the current dispatcher view are not needed, the system can choose to remove these views from memory. This method is called after the view manager view has been released, and this is your chance to perform a final cleanup. If your view controller stores separate links to the view or its subclauses, you should use this method to release these links. You can also use this method to remove references to any objects created to support the view, but which are no longer needed now when the view is missing.
viewDidDisappear: -
Informs the view manager that its view has been removed from the view hierarchy, which opens at any time, or moves to another view.
source share