码迷,mamicode.com
首页 > 其他好文 > 详细

屏幕旋转,ViewController触发事件

时间:2015-06-24 12:33:14      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:

 ViewController加载完成以后,旋转屏幕,会触发以下事件:

  注:ShowViewCycle是ViewController的SubView

1. -[ViewController willTransitionToTraitCollection:withTransitionCoordinator:] [Line 76] newCollection:<UITraitCollection: 0x7f8f22d6a5a0; _UITraitNameUserInterfaceIdiom = Phone, _UITraitNameDisplayScale = 2.000000, _UITraitNameHorizontalSizeClass = Compact, _UITraitNameVerticalSizeClass = Compact, _UITraitNameTouchLevel = 0, _UITraitNameInteractionModel = 1> coordinator:<_UIViewControllerTransitionCoordinator: 0x7f8f22d67660>

2. -[ViewController viewWillTransitionToSize:withTransitionCoordinator:] [Line 63] coordinator:<_UIViewControllerTransitionCoordinator: 0x7f8f22d67660>, size width:667.000000 hight:375.000000

  2.1 -[ShowViewCycle translatesAutoresizingMaskIntoConstraints] [Line 393] 

  2.2 -[ShowViewCycle translatesAutoresizingMaskIntoConstraints] [Line 393] 

  2.3 -[ShowViewCycle translatesAutoresizingMaskIntoConstraints] [Line 393] 

3. -[ViewController viewWillLayoutSubviews] [Line 186] 

4. -[ViewController updateViewConstraints] [Line 387] 

  4.1 -[ShowViewCycle translatesAutoresizingMaskIntoConstraints] [Line 393] 

  4.2 -[ShowViewCycle alignmentRectInsets] [Line 434] 

5. -[ViewController viewDidLayoutSubviews] [Line 196] 

  5.1 -[ShowViewCycle layoutSubviews] [Line 231] 

屏幕旋转,ViewController触发事件

标签:

原文地址:http://www.cnblogs.com/StarMud/p/4597269.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!