zoukankan      html  css  js  c++  java
  • 各种动画

    1.创建一个转场动画

       CATransition *animation = [CATransition animation];

    2.动画时间

       animation.duration = 0.8;

    3.动画类型

      animation.type = @"rippleEffect";

     /*
         fademoveIn push reveal                     和系统的四种一样
                           pageCurl                         向上翻一页
                           pageUnCurl                     向下翻一页
                           rippleEffect                      滴水效果
                           suckEffect                        收缩效果,如一块布被抽走
                           cube  alignedCube             立方体效果
                           flip  alignedFlip oglFlip        翻转效果
                           rotate         旋转
         cameraIris cameraIrisHollowOpen cameraIrisHollowClose 相机
         
         */
    4.动画方向

        animation.subtype = kCATransitionFromLeft;

    5.[self.navigationController.view.layer addAnimation:animation forKey:@""];

  • 相关阅读:
    双屏显示器
    Cheat Engine Tutorial v3翻译Cheat Engine 6.1 tutorial(3)
    [转]VC6创建UNICODE版Windows程序
    fread
    [转]回调函数在MFC中的使用
    [转]C++ 虚函数表解析
    [转]C/C++返回内部静态成员的陷阱
    [转]EVC 中 include 的错误
    【rgw压缩】
    【ceph | 运维】rgw重置
  • 原文地址:https://www.cnblogs.com/Angelone/p/4388228.html
Copyright © 2011-2022 走看看