I had a similar problem, check the accepted answer, this may help you:
Turn the UIView clockwise for an angle of more than 180 degrees
In response to the comments, perhaps this will help:
In my code, I actually use
rotationAnimation.fromValue rotationAnimation.toValue
instead
rotationAnimation.byValue.
The rotation will always be counterclockwise if the value of toValue is less than the value of fromValue. It doesn't matter if your values ββare positive or negative, only the relationship between them.
Find out what your starting angle is, find out which direction you want to turn, and find out what your final angle is. Make sure it is smaller than your starting angle if you want to go counterclockwise. Here is the code that I use to animate clockwise from 12:00 to the current time.
-(void) viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self updateClockArmAngle]; } - (void)updateClockArmAngle {
Darren
source share