David Sanford David Sanford - 1 year ago 129
iOS Question

How to refresh ViewController targeted with Back Button

I have a localized app that runs well. While all pages refresh with the change language button, their is one page that does not. This page is triggered by a "Back" button. Apparently, Back buttons do not trigger the function ViewDidLoad. How to refresh a VC as the result of a Back Button?

Answer Source

Use the code you want inside: viewWillAppear: method.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download