This should be simple, but I\'m having trouble rotating a UIImageView
a full 360 degrees, repeated forever.
[UIView animateWithDuration:0.5 delay:0
Sorry missed first part, view rotates just fine using smaller angle:
[UIView animateWithDuration:0.5 delay:0 options:UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionRepeat | UIViewAnimationOptionCurveLinear | UIViewAnimationOptionBeginFromCurrentState animations:^{
redView.transform = CGAffineTransformRotate(redView.transform, M_PI_2);
} completion:^(BOOL finished) {
}];
I couldn't find any meaningful explanations why it fails with M_PI.