iOS生命周期调动系统函数过程:
有Storyboard
[ViewController load]
[ViewController initWithCoder:]
[ViewController awakeFromNib]
[ViewController loadView]
[ViewController viewDidLoad]
[ViewController viewWillAppear:]
[ViewController viewWillLayoutSubviews]
[ViewController viewDidLayoutSubviews]
[ViewController viewDidAppear:]
无storyboard
[ViewController load]
[ViewController initWithNibName:bundle:]
[ViewController init]
[ViewController loadView]
[ViewController viewDidLoad]
[ViewController viewWillAppear:]
[ViewController viewWillLayoutSubviews]
[ViewController viewDidLayoutSubviews]
[ViewController viewDidAppear:]
举例子:AViewController push到 BViewController:
网友评论