1
我正在使用此代码来制作动画。我的问题是如何停止动画?不要告诉我改变重复次数。我想动画工作,直到我说停止。有没有一种方法可以用来实现这一点?如何停止动画?
[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];