IOS 实现滚动文字
? ?當(dāng)然最好應(yīng)該使用block的方式,在此只是標(biāo)記一下。
? ? 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];
總結(jié)
以上是生活随笔為你收集整理的IOS 实现滚动文字的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Ubuntu make menuconf
- 下一篇: 基于Winsock API的VC网络编程