zoukankan      html  css  js  c++  java
  • ios 图片旋转动画

     

     

    -(void)loopBasecAnimation

    {

        CABasicAnimation *rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];

        rotationAnimation.toValue = [NSNumber numberWithFloat:M_PI * 2.0];

        rotationAnimation.duration = 0.2;

        rotationAnimation.cumulative = YES;

        rotationAnimation.repeatCount =ULLONG_MAX;

        

        [failedTipImageView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];

        

    }

     

    -(void)stopLoopAnimation

    {

        [failedTipImageView.layer removeAllAnimations];

    }

  • 相关阅读:
    2017 Multi-University Training Contest
    NTT模板
    重庆OI2017 小 Q 的棋盘
    用TensorFlow2.0构建分类模型对数据集fashion_mnist进行分类
    读取keras中的fashion_mnist数据集并查看
    基本类型和引用类型
    idea快捷键
    pytorch的torch.nn.CrossEntropyLoss()
    高斯模糊和高斯双边滤波
    opencv之模糊操作
  • 原文地址:https://www.cnblogs.com/xiangjune/p/6419595.html
Copyright © 2011-2022 走看看