• 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];

    }

  • 相关阅读:
    【IntelliJ Idea】git commit 显示 Local Changes
    【Nginx】worker_connections设置
    【Java Web开发学习】DataSource获取的Connection要不要关闭
    【Redis】LOADING Redis is loading the dataset in memory
    shell 常用
    insert DB
    mq部署
    systemctl启动方式
    mq启动报错ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! !!
    redis哨兵centos7开机自启动
  • 原文地址:https://www.cnblogs.com/xiangjune/p/6419595.html
Copyright © 2020-2023  润新知