zoukankan      html  css  js  c++  java
  • CATranstion动画

     // 1.创建过度动画
        CATransition *anima = [CATransition animation];
        // 2.设置动画类型
        anima.type = @"cube";
        anima.subtype = kCATransitionFromRight;
        // 3.设置动画时间
        anima.duration = 3;
        anima.startProgress = 0.5;
        anima.endProgress = 0.8;
        // 4.添加动画
        [self.view.layer addAnimation:anima forKey:nil];

    type类型有:

    1. animation.type = kCATransitionFade;  
    2.   
    3. animation.type = kCATransitionPush;  
    4.   
    5. animation.type = kCATransitionReveal;  
    6.   
    7. animation.type = kCATransitionMoveIn;  
    8.   
    9. animation.type = @"cube";  
    10.   
    11. animation.type = @"suckEffect";  
    12.   
    13. // 页面旋转  
    14. animation.type = @"oglFlip";  
    15.   
    16. //水波纹  
    17. animation.type = @"rippleEffect";  
    18.   
    19. animation.type = @"pageCurl";  
    20.   
    21. animation.type = @"pageUnCurl";  
    22.   
    23. animation.type = @"cameraIrisHollowOpen";  
    24.   
    25. animation.type = @"cameraIrisHollowClose";  
  • 相关阅读:
    hdu 2709 Sumsets
    hdu 2004 成绩转换
    hihocoder 1043 完全背包
    hihocoder 1038 01背包
    hihocoder 1066 无间道之并查集
    并查集小结
    hdu 1232 畅通工程
    并查集学习2
    并查集知识学习
    js 禁止表单提交的方法(文件上传)
  • 原文地址:https://www.cnblogs.com/yintingting/p/4693314.html
Copyright © 2011-2022 走看看