OS中实现跑马灯效果的代码片段:
[labelShow sizeToFit];
CGRect frame = labelShow.frame;
frame.origin.x = 320;
labelShow.frame = frame;
[UIView beginAnimations:@"testAnimation" context:NULL];
[UIView setAnimationDuration:8.8f];
[UIView setAnimationCurve:UIViewAnimationCurveLine
[UIView setAnimationDelegate:self];
[UIView setAnimationRepeatAutore
[UIView setAnimationRepeatCount:999999];
frame = labelShow.frame;
frame.origin.x = -frame.size.width;
labelShow.frame = frame;
[UIView commitAnimations];
698

被折叠的 条评论
为什么被折叠?



