Search code examples
objective-ciosxcodeios5uinavigationcontroller

Listener for "Going back" in Navigation Controller


I found many old answers for this questions, but they all are 2+ years old.

I would like to add listener for the left button - the "back" one. I would like to show UIAlertView and then wait for response - YES/NO.

Is it possible in newer SDK?


Solution

  • You could "cheat" the system to show a custom UINavigationBar with your own arrow-shaped "Back" button - this way you could fully manipulate the behaviour and not be confined to the default behavior.