I have some code to clean up in my viewWillDisappear:
, which I only want to use when the view is moving back to the parent view controller.
- (void)
If this is the first view controller in a modal navigation controller that's being dismissed, calling self.isBeingDimissed()
from viewWillDisappear:
returns false
.
However, since the entire navigation controller is being dismissed, what actually works is self.navigationController?.isBeingDismissed()
, which returns true
.