zoukankan      html  css  js  c++  java
  • 屏幕旋转,ViewController触发事件

     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 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] 

  • 相关阅读:
    MHA自动切换流程
    手写源码之 简单实现on emit off
    手写源码 -- bind,call,aplly
    多维数组转化为一维数组
    electron+vue中使用nodeJs的fs模块以及上传文件
    制作海报
    vue中引入播放器(百度播放器和腾讯云播放器)
    webpack配置
    webpack
    css样式
  • 原文地址:https://www.cnblogs.com/StarMud/p/4597269.html
Copyright © 2011-2022 走看看