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?
Try view controller's viewWillAppear:
method (if you want to setup one specific controller).
精彩评论