I have this code that rotates my imageview but when I press my pause button I want the rotation speed to be 0. How would I do that?
@IBAction func playButtonL(sender: AnyObject) {
rotation.toValue = NSNumber(double: M_PI * 2)
rotation.duration = 2
rotation.cumulative = true
rotation.repeatCount = FLT_MAX
self.leftCircleImageView.layer.addAnimation(rotation, forKey: "rotationAnimation")
}
@IBAction func pauseButtonR(sender: AnyObject) {
}