iphone 的滚动文字

mac2022-06-30  98

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

 

转载于:https://www.cnblogs.com/w-zhijun/archive/2012/05/08/2489851.html

相关资源:CSS3 HTML5仿苹果手机文字无缝滚动.rar
最新回复(0)