I have this code for rotate image view:
func rotateAgain(){
UIView.animateWithDuration(1.0,
delay: 0.0,
options: .CurveLinear,
animations: {self.imageView.transform = CGAffineTransformRotate(self.imageView.transform, 1.degreesToRadians)},
completion: {finished in if self.rotating { self.rotateOnce() }})
}
What is wrong in the code?