現時点では、丸い矢印を円を描くように回転させています..これはクールですべてですが、他のビューのようにエンディングに関してはもう少し洗練されたものを望んでいます。 、これに対して同じことができるかどうか疑問に思っていました..これは私のコードです..
- (IBAction)animator:(id)sender
{
[arrowRotation removeFromSuperview];
//arrow animation
arrowRotation = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow.png"]];
arrowRotation.frame = CGRectMake(148.0, 20.0, 30.0, 30.0);
[self.view addSubview:arrowRotation];
CABasicAnimation *fullRotation;
fullRotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
fullRotation.fromValue = [NSNumber numberWithFloat:0];
fullRotation.toValue = [NSNumber numberWithFloat:((360*M_PI)/180)];
fullRotation.duration = 0.75f;
fullRotation.repeatCount = 3;
[arrowRotation.layer addAnimation:fullRotation forKey:@"360"];
}
だから私の質問は、3回転になるとこのアニメーションを遅くすることができるかということです..UIViewの使いやすさのように。それが理にかなっていれば..
どんな助けでも大歓迎です。