首页 > 学院 > 开发设计 > 正文

IOS控制器生命周期

2019-11-14 18:52:34
字体:
来源:转载
供稿:网友

两个控制器A push B && B pop A

2015-06-10 15:55:41.974 vdavadf[7043:212405] A _ VC viewDidLoad

2015-06-10 15:55:41.975 vdavadf[7043:212405] A _ VC viewWillAppear

2015-06-10 15:55:41.986 vdavadf[7043:212405] A _ VC viewWillLayoutSubviews

2015-06-10 15:55:41.986 vdavadf[7043:212405] A _ VC viewDidLayoutSubviews

VC上View还未显示

2015-06-10 15:55:42.067 vdavadf[7043:212405] A _ VC viewDidAppear

VC上View已经显示

2015-06-10 15:55:55.961 vdavadf[7043:212405] push

2015-06-10 15:55:55.961 vdavadf[7043:212405] A _ VC viewWillDisappear

2015-06-10 15:55:55.962 vdavadf[7043:212405] B _ VC viewWillAppear

2015-06-10 15:55:55.965 vdavadf[7043:212405] B _ VC viewWillLayoutSubviews

2015-06-10 15:55:55.965 vdavadf[7043:212405] B _ VC viewDidLayoutSubviews

2015-06-10 15:55:56.466 vdavadf[7043:212405] A _ VC viewDidDisappear

2015-06-10 15:55:56.467 vdavadf[7043:212405] B _ VC viewDidAppear

2015-06-10 15:57:45.818 vdavadf[7043:212405] pop

2015-06-10 15:57:45.818 vdavadf[7043:212405] B _ VC viewWillDisappear

2015-06-10 15:57:45.818 vdavadf[7043:212405] A _ VC viewWillAppear

2015-06-10 15:57:46.321 vdavadf[7043:212405] B _ VC viewDidDisappear

2015-06-10 15:57:46.321 vdavadf[7043:212405] A _ VC viewDidAppear


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表