标签:
// 创建动画 let anim = CABasicAnimation(keyPath: "transform.rotation") // 设置动画属性 anim.toValue = 2 * M_PI anim.repeatCount = MAXFLOAT anim.duration = 10 anim.removedOnCompletion = false // 将动画添加到图层上 imageView.layer.addAnimation(anim, forKey: nil)
标签:
原文地址:http://www.cnblogs.com/zhangshan/p/5701286.html