Search code examples
iphoneobjective-c

Find out if user pressed the back button in uinavigationcontroller?


When a view loads, i want to see if it's because the user pressed the back button. How can i check this?


Solution

  • The only way to do this so you know for sure that it was the back button is to create a custom button. If you don't know how to do that, check out this tutorial. It won't look exactly like the normal back button, but close. If you need more help, post a comment