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:@""];

  • 相关阅读:
    PHP多进程(四) 内部多进程
    STL map and multimap
    Understanding Function Objects
    Working with Bit Flags Using STL
    STL Algorithms
    STL set and multiset
    Understanding Smart Pointers
    More Effective C++ 学习笔记(1)
    Adaptive Container: stack and queue
    第一个 Python 程序
  • 原文地址:https://www.cnblogs.com/Angelone/p/4388228.html
Copyright © 2011-2022 走看看