iphone 的滚动文字
1 CGRect frame = labelShow.frame; 2 frame.origin.x = -180; 3 labelShow.frame = frame; 4 5 [UIView beginAnimations:@"testAnimation" context:NULL]; 6 [UIView setAnimationDuration:8.8f]; 7 [UIView setAnimationCurve:UIViewAnimationCurveLinear]; 8 [UIView setAnimationDelegate:self]; 9 [UIView setAnimationRepeatAutoreverses:NO]; 10 [UIView setAnimationRepeatCount:999999]; 11 12 frame = labelShow.frame; 13 frame.origin.x = 350; 14 labelShow.frame = frame; 15 [UIView commitAnimations];