Knowing when the back button is pressed in a navigation item
I have a tableview that takes a user to a UIWebview when a cell is selected. I want to execute some code when the user navigates away from that view by pressing the back button on the navigationbar. How do i do this?
I know one method is to just put the code in the VeiwWillDissapear method but i have a tab bar at the bottom and the method will get called if the user selects another tab, and i don't want the code i have to be run if that happens. Any suggestions?
|