When dismissing a UIViewController
via the back button, are there any events that I can trap?
I want to write a couple of user defaults when the UIViewController
is exiting.
When dismissing a UIViewController
via the back button, are there any events that I can trap?
I want to write a couple of user defaults when the UIViewController
is exiting.
Both the methods viewWillDisappear
and viewDidDisappear
should be called at this time.
willMoveToParentViewController might be your friend here