• IOS设备屏幕旋转相关技术收集


    UIInterfaceOrientation方向枚举:

    UIInterfaceOrientationPortrait //home健在下
    UIInterfaceOrientationPortraitUpsideDown //home健在上
    UIInterfaceOrientationLandscapeLeft //home健在左
    UIInterfaceOrientationLandscapeRight //home健在右

    旋转屏幕时触发的函数:
    //旋转方向发生改变时
    -(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    }
    //视图旋转动画前一半发生之前自动调用
    -(void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    }
    //视图旋转动画后一半发生之前自动调用
    -(void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration {
    }
    //视图旋转之前自动调用
    -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    }
    //视图旋转完成之后自动调用
    -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
    }
    //视图旋转动画前一半发生之后自动调用
    -(void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
    }
  • 相关阅读:
    如何快速开发一个自己的项目脚手架?
    Vue模板语法中数据绑定
    vue组件间通信八种方式
    浏览器渲染页面流程
    双飞翼布局
    单行截断和多行截断问题
    flex 布局实现固定头部和底部,中间滚动布局
    defer 和 async 区别
    数学之美(统计语言模型)
    react 源码之setState
  • 原文地址:https://www.cnblogs.com/mrhgw/p/2595392.html
Copyright © 2020-2023  润新知