I work on a legacy application, and have found out, that my
The view probably wasn't onscreen. It has to be onscreen (visible) for the
viewWillDisappear: method to be called. If it's coming back from the background, it wasn't visible.
You could try using
willMoveToParentViewController: which is called when the view controller is removed from its parent.