このコードを使用してアニメーションを作成しています。私の質問は、どうすればアニメーションを停止できますか? 繰り返し回数を変更するように言わないでください。ストップと言うまでアニメーションを動かしたい。これを達成するために使用できる方法はありますか?
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:INFINITY];
[[menuViewOne loadBut] setFrame:CGRectMake(230, 35, 150, 25)];
[UIView commitAnimations];