UIViewController生命周期测试
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UIViewController生命周期测试相关的知识,希望对你有一定的参考价值。
push进入
-[NaviRootVC viewWillDisappear:]
-[NextVC viewWillAppear:]
-[NextVC viewWillLayoutSubviews]
-[NextVC viewDidLayoutSubviews]
-[NaviRootVC viewDidDisappear:]
-[NextVC viewDidAppear:]
pop退出
-[NextVC viewWillDisappear:]
-[NaviRootVC viewWillAppear:]
-[NextVC viewDidDisappear:]
-[NaviRootVC viewDidAppear:]
present进入
-[NaviRootVC viewWillDisappear:]
-[NextVC viewWillAppear:]
-[NextVC viewWillLayoutSubviews]
-[NextVC viewDidLayoutSubviews]
-[NextVC viewWillLayoutSubviews]
-[NextVC viewDidLayoutSubviews]
-[NextVC viewDidAppear:]
-[NaviRootVC viewDidDisappear:]
dismiss退出
-[NextVC viewWillDisappear:]
-[NaviRootVC viewWillAppear:]
-[NaviRootVC viewDidAppear:]
-[NextVC viewDidDisappear:]
侧滑先出后回
-[NextVC viewWillDisappear:]
-[NaviRootVC viewWillAppear:]
-[NaviRootVC viewWillDisappear:]
-[NaviRootVC viewDidDisappear:]
-[NextVC viewWillAppear:]
-[NextVC viewDidAppear:]
导航根控制器初次加载
-[NaviRootVC viewWillAppear:]
-[NaviRootVC viewWillLayoutSubviews]
-[NaviRootVC viewDidLayoutSubviews]
-[NaviRootVC viewWillLayoutSubviews]
-[NaviRootVC viewDidLayoutSubviews]
-[NaviRootVC viewDidAppear:]
以上是关于UIViewController生命周期测试的主要内容,如果未能解决你的问题,请参考以下文章