滚动文字的兑现

滚动文字的实现
CGRect frame = label.frame;
frame.origin.x = -180;
frame.origin.y = -220;
label.frame = frame;
    
[UIView beginAnimations:@"testAnimation" context:NULL];
[UIView setAnimationDuration:8.8f];  
[UIView setAnimationCurve:UIViewAnimationCurveLinear];     
[UIView setAnimationDelegate:self];  
[UIView setAnimationRepeatAutoreverses:NO];     
[UIView setAnimationRepeatCount:999999]; 
    
frame = label.frame;
frame.origin.x = 350;
frame.origin.y = 300;
label.frame = frame;
[UIView commitAnimations];