iOS 小动画
2024-09-07 19:05:16
一。图片旋转
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ];
rotationAnimation.duration = 1;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = 0;
[customView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
最新文章
- Your pain
- iOS开发UI篇—字典转模型
- Ext comboBox的remote和local的区别
- CodeForces Round 196
- RHEL7.2下netcat工具安装教程
- Unity3d:加载Gif格式图片
- Tengine – Nginx衍生版
- hadoop2.1.0编译安装教程
- Mac 上Dock中添加“最近打开过的项目”(Recent Applications)
- hdu2157之矩阵快速幂
- h.264并行解码算法2D-Wave实现(基于多核共享内存系统)
- 【Asp.net Core】在 Linux 子系统中安装 nginx 并配置反向代理
- Luogu2973:[USACO10HOL]赶小猪
- SQL根据B表内容修改A表内容,查询表中重复记录,删除掉重复项只保留一条
- CodeIgniter框架解析
- 题解 SP26045 【GCDMAT2 - GCD OF MATRIX (hard)】
- 有道词典Linux版下载安装
- linux内核分析第二四学习报告
- Rar安装包
- unity中Camera.ScreenToWorldPoint