会旋转的 UIImageView
通过给继承与 UIImageView 的类 CXGImageView 添加 CABasicAnimation 转动动画,实现播放器图片转动效果.主要提供三个方法: startRotating, stopRotating,resumeRotatestartRotating/// 开始动画func startRotating() { let rotateAnimation = CABasicAnimation(keyPath: "transform.rotation") rota.
原创
2020-10-13 13:56:22 ·
140 阅读 ·
0 评论