I need to identify what UIViewController was previously shown in a UINavigationController. My navigation is 3 levels deep, in level 2 I need to identify if I got here from pushing from level 1 or if I got here from popping from level 3. How can I do this easily?
I need to identify what UIViewController was previously shown in a UINavigationController . My
Share
Implement the UINavigationControllerDelegate method:
and query it to find out the currently displayed view controller:
This is the one you’re coming from.