I want to do something when user segues back in a navigation controller(iOS)
ios, objective-c
Solution
There are lots of avenues to accomplish something like this.
- Implement viewWillDisappear
- Implement viewWillAppear
- Set up a delegate for your navigation and respond to changes
- Make your own back button that links to your own function
- Use an NSNotification when moving back
Anyone of the above is a good starting place.
Problem
I have a table view here and want to update the UI when user hit the 'back' button in a navigation controller. How can I do that?