Called after the view controller’s view is removed from the view hierarchy in a window.
- macOS 10.10+
You can override this method to perform tasks associated with removing the view controller’s view from the window’s view hierarchy, such as releasing resources not needed when the view is not visible or no longer part of the window.
If you override this method, call this method on
super at some point in your implementation in case a superclass also overrides this method.
The default implementation of this method does nothing.