IOS 实现滚动文字
? ?當然最好應該使用block的方式,在此只是標記一下。
? ? self.firstButton.backgroundColor = [UIColorgreenColor];
? ? CGRect frame = self.firstButton.frame;
? ? frame.origin.x = 320;
? ? self.firstButton.frame = frame;
? ? [UIViewbeginAnimations:@"testAnimation"context:NULL];
? ? [UIViewsetAnimationDuration:8.8f];
? ? [UIViewsetAnimationCurve:UIViewAnimationCurveLinear];
? ? [UIViewsetAnimationDelegate:self];
? ? [UIViewsetAnimationRepeatAutoreverses:NO];
? ? [UIViewsetAnimationRepeatCount:999999];
? ? frame = self.firstButton.frame;
? ? frame.origin.x = -frame.size.width;
? ? self.firstButton.frame = frame;
? ? [UIViewcommitAnimations];
總結
以上是生活随笔為你收集整理的IOS 实现滚动文字的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu make menuconf
- 下一篇: 基于Winsock API的VC网络编程