美文网首页
ViewController的生命周期

ViewController的生命周期

作者: Code丶Ling | 来源:发表于2016-11-01 21:10 被阅读11次

    原文地址:http://www.jianshu.com/p/df240103cedf

    显示时(push)调用一览表

    1.initWithCoder:

    2.awakeFromNib

    3.willMoveToParentViewController:

    4.prefersStatusBarHidden

    5.preferredStatusBarUpdateAnimation

    6.loadView

    7.prepareForSegue:sender:

    8.viewDidLoad

    9.extendedLayoutIncludesOpaqueBars

    10.edgesForExtendedLayout

    11.viewWillAppear:

    12.extendedLayoutIncludesOpaqueBars

    13.edgesForExtendedLayout

    14.updateViewConstraints

    15.viewWillLayoutSubviews

    16.viewDidLayoutSubviews

    17.(Animation)

    18.viewDidAppear:

    19.didMoveToParentViewController:

    20.updateViewConstraints

    21.viewWillLayoutSubviews

    22.viewDidLayoutSubviews

    测试Demo地址:https://github.com/StreamStone/ViewControllerLifecircleDemo

    相关文章

      网友评论

          本文标题:ViewController的生命周期

          本文链接:https://www.haomeiwen.com/subject/eqzmuttx.html