how to stop animation after using beginAnimations?

Posted by www.ruu.cc on Stack Overflow See other posts from Stack Overflow or by www.ruu.cc
Published on 2010-03-20T02:38:57Z Indexed on 2010/03/20 2:41 UTC
Read the original article Hit count: 425

Filed under:

i use the following code to do a string rolling, but how to stop the animation?

[UIView beginAnimations:@"ruucc" context:NULL];
[UIView setAnimationDuration:12.8f];  
[UIView setAnimationCurve:UIViewAnimationCurveLinear];  
[UIView setAnimationDelegate:self];  
[UIView setAnimationRepeatAutoreverses:NO];  
[UIView setAnimationRepeatCount:999999]; 

frame = label1.frame;
frame.origin.x = -12;
label1.frame = frame;
[UIView commitAnimations];  

© Stack Overflow or respective owner

Related posts about cocoa-touch