zoukankan      html  css  js  c++  java
  • CATransition使用

    /* 过渡效果
     fade     //交叉淡化过渡(不支持过渡方向)
     push     //新视图把旧视图推出去
     moveIn   //新视图移到旧视图上面
     reveal   //将旧视图移开,显示下面的新视图
     cube     //立方体翻滚效果
     oglFlip  //上下左右翻转效果
     suckEffect   //收缩效果,如一块布被抽走(不支持过渡方向)
     rippleEffect //滴水效果(不支持过渡方向)
     pageCurl     //向上翻页效果
     pageUnCurl   //向下翻页效果
     cameraIrisHollowOpen  //相机镜头打开效果(不支持过渡方向)
     cameraIrisHollowClose //相机镜头关上效果(不支持过渡方向)
     */
    
    /* 过渡方向
     fromRight;
     fromLeft;
     fromTop;
     fromBottom;
     */
    
    /*
        CATransition *animation = [CATransition animation];
        animation.delegate = self;
        animation.duration = 0.5f; //动画时长
        animation.timingFunction = UIViewAnimationCurveEaseInOut;
        animation.fillMode = kCAFillModeForwards;
        animation.type = @"cube"; //过度效果
        animation.subtype = @"formLeft"; //过渡方向
        animation.startProgress = 0.0 //动画开始起点(在整体动画的百分比)
        animation.endProgress = 1.0;  //动画停止终点(在整体动画的百分比)
        animation.removedOnCompletion = NO;
        [self.view.layer addAnimation:animation forKey:@"animation"];
    */
  • 相关阅读:
    nat
    ICE协议下NAT穿越的实现(STUN&TURN)
    比特币源码分析--端口映射
    IO复用,AIO,BIO,NIO,同步,异步,阻塞和非阻塞 区别(百度)
    从数据的角度带你深入了解IPFS
    IPFS 到底是怎么工作的?
    从数据的角度带你深入了解IPFS
    IPFS
    IPFS中文简介
    bootstrap 表单验证 dem
  • 原文地址:https://www.cnblogs.com/foxmin/p/2768408.html
Copyright © 2011-2022 走看看