Home Ask Login Register

Developers Planet

Your answer is one click away!

Lenny1357 February 2016

calling viewdidload when using popViewController SWIFT

I have a navigation view controller and I am using popViewControllerAnimated(true) to show the view controller shown before. It works but I need to call the viewDidLoad of the before shown view controller to reload a table view. The viewDidLoad is not called when using popViewControllerAnimated(true). What should I do to call it then.

Answers


mohonish February 2016

You can use the viewDidAppear or viewWillAppear methods in view lifecycle to reload the data in your tableview.

Post Status

Asked in February 2016
Viewed 3,173 times
Voted 4
Answered 1 times

Search




Leave an answer


Quote of the day: live life