阅读背景:

强制顺时针/逆时针旋转UIImageView的CABasicAnimation

来源:互联网 

I'm animating a pendulum which swings from 0 degrees to max 200 degrees and then back again. The problem is that if the pendulum goes over 180 degrees, it returns to 0 by the shortest route which is to continue clockwise. And I'd like it to go anticlockwise. Here's my code: ('right' is a boolean which is TRUE when the pendulum is swinging from left to right)I'm animating a pendulum which swings from 0 de




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: