开发者

Running method everytime I push the ViewController

开发者 https://www.devze.com 2023-02-13 11:31 出处:网络
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 chec

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消