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];