Rorschach Rorschach - 1 year ago 99
Swift Question

How to reload a previous page when segue back

I use this line of code in my iOS app


It takes the user back the login page, but it does not reload the login with all the most recent data.

It will not run this code again:

override func viewDidLoad() {

How do I make the segue cause the viewDidLoad again?

Answer Source

Use viewWillAppear method for that.

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