My UIViewController is in a navigation stack. How can I detect when the user is trying to pop up to a previous level vs. pushing a new view controller over it?
I want to post a notification when the view is removed from the stack, as if the user had tapped a Save button that I don’t have.
You could do something in
viewWillDisappear:and there is also the UINavigationControllerDelegate protocol that has two methods for detecting when views will or have been shown.