动画
2016-04-26 22:01
253 查看
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ];
rotationAnimation.duration = duration;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = 100000;
[_loadingView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
分享:
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ];
rotationAnimation.duration = duration;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = 100000;
[_loadingView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
分享:
相关文章推荐
- 冲刺第九天
- Django:之CMDB资源系统
- 一个Mathematica能解、maple不行的高阶线性常微分方程
- 关于一些实验班问题的解答以及下个学期之前小组的任务
- 非阻塞模式
- spring+redis做数据缓存
- LSA校验和计算(java源码)
- 使用Xutils无法访问HttpRequestBase 找不到org.apache.http.client.methods.HttpRequestBase的类文件
- socket套接字详解
- 字符串输入和注意的细节
- c++作业4
- mysql批量插入优化
- MYSQL的DOUBLE WRITE双写
- 处理JNI ERROR (app bug): accessed stale local reference 0xbc00021报错
- 网络图片查看
- 报错
- App提交Appstore审核被拒的原因汇总
- mysql
- JavaScript Math(算数对象)
- 《R语言经典示例》学习笔记(一)