Basic Animation:
[UIView animateWithDuration:7.75
animations:^{
self.transform = CGAffineTransformRotate(CGAffineTransformIdentity, -M_PI);
}
completion:^(BOOL finished){
[UIView animateWithDuration:7.75
animations:^{
self.transform = CGAffineTransformRotate(CGAffineTransformIdentity, -M_PI);
}
completion:^(BOOL finished){
}];
}];
I'd like to rotate the image by 360 degrees and then rotate it again by 360 degrees but for some reason it doesn't execute the second rotation.
Why? What could possibly go wrong?