I want to perform a action when the user pressed the back button on my UINavigationController
when arrived at a certain UIViewController
.
Unfortunately it looks like UINavigationControllerDelegate
doesn't have any methods to get notified of the popping of views.
As a workaround I now have in the viewDidDisappear
method my action, that only gets fired when animated
is YES
. This works, but it's a bit ugly.
How should I do this properly?