跑马灯
来源:互联网 发布:lte ping时延优化 编辑:程序博客网 时间:2024/04/30 01:36
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];
0 0
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- 跑马灯
- java生成二维码
- IEC61850变电站基本通信结构-原理和模型_5ACSI通信
- UIColor使用十六进制的宏
- ameblopentry-11849919717
- org.objectweb.asm.ClassVisitor.visit 找不到方法
- 跑马灯
- ViewPager切换滑动速度修改
- 盛大文学小说阅读网十周年庆典暨
- WAVE头分析代码
- 遍历Map的四种方法
- uva 11292 贪心
- python实现模拟登录
- Android系统编译过程分析
- Qt中ui文件的使用