Refresh view in iPhone navigation based application

iphonenavigationuinavigationcontroller

I am using a navigation based application for iPhone. I want to reload a view when i come back to it after pressing the back button. ANy solution?

Regards

Best Solution

Add a method viewWillAppear: to your controller class. In that method you can then update the view with current data.

The viewWillAppear: method will execute whenever the view is about to be displayed (after navigating to a different view using UINavigationController)