zoukankan      html  css  js  c++  java
  • 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 {
    }


  • 相关阅读:
    Redis集群启动脚本
    查看表结构
    MySQL删除冗余数据
    Java中的阶乘
    MySQL中IFNULL,ISNULL和NULLIF
    最小化安装CentOS7后要做的30件事情
    VMware的CentOS部署环境
    CentOS 上的 FirewallD 简明指南
    CentOS安装Java环境
    Linux中一些常用的很巧妙的命令
  • 原文地址:https://www.cnblogs.com/waddell/p/3405518.html
Copyright © 2011-2022 走看看