David Sanford David Sanford - 3 months ago 14
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

Use the code you want inside: viewWillAppear: method.

Comments