yosh
yosh

Reputation: 3305

Running method everytime I push the ViewController

What init metod is called everytime a viewcontroller is pushed to window?

-viewDidLoad and -initWithNibName work only 1st time the view is started. But I want to do some startup checking in my vc everytime I start it.

Does such method exist? or do I have to declare it somehow manually?

Upvotes: 1

Views: 51

Answers (1)

Vladimir
Vladimir

Reputation: 170829

Try view controller's viewWillAppear: method (if you want to setup one specific controller).

Upvotes: 4

Related Questions