1
我試圖讓這當用戶拖動輪目標C - 旋轉使用輪弧度
轉一圈圖像這是我的代碼:
CABasicAnimation *rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat:angleRadians];
rotationAnimation.duration = 10;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = 1.0;
rotationAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];
[self.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
我有,雖然主要的問題,圖像完成時正在重置。
請幫忙嗎?
謝謝一百萬! – Lilz 2010-09-17 12:49:25