In UINavigationController
, is there a way to button if the current viewcontroller is being dismissed as a result of the user pressing the back button or if the view controller is being dismissed programmatically with popViewControllerAnimated
?
Note: I am specifically trying to differentiate between the 2 events. This is not a duplicate of this question as I am trying to figure out which event was called, not when the view controller is being dismissed
To Clarify: I am trying to figure out whether the view is disappearing because
a) the back button was pressed or
b) popViewControllerAnimated was called