I have pushed a view onto the navigation controller and when I press the back button it goes to the previous view automatically. I want to do a few things when back button is pressed before popping the view off the stack. Which is the back button callback function?
Ios – back button callback in navigationController in iOS
backcallbackiosuinavigationcontrolleruinavigationitem
Related Topic
- Ios – Setting action for back button in navigation controller
- Ios – How to change the title of the “back” button on a Navigation Bar
- Java – Override back button to act like home button
- Ios – Programmatically call navigation controller back button on iOS
- Ios – Detecting when the ‘back’ button is pressed on a navbar
- Javascript – How to access the correct `this` inside a callback
- Ios – How to present UIAlertController when not in a view controller
- Ios – Execute action when back bar button of UINavigationController is pressed
Best Answer
William Jockusch's answer solve this problem with easy trick.