跑马灯效果
2016-04-11 14:57
477 查看
[UIView beginAnimations:@"testAnimation"context:NULL];
[UIView setAnimationDuration:15.0f];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationDelegate:self];
[UIView setAnimationRepeatAutoreverses:NO];
[UIView setAnimationRepeatCount:999999];
frame = labelShow.frame;
frame.origin.x = -frame.size.width;
labelShow.frame = frame;
[UIView commitAnimations];
[UIView setAnimationDuration:15.0f];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationDelegate:self];
[UIView setAnimationRepeatAutoreverses:NO];
[UIView setAnimationRepeatCount:999999];
frame = labelShow.frame;
frame.origin.x = -frame.size.width;
labelShow.frame = frame;
[UIView commitAnimations];
相关文章推荐
- Android基于TextView实现的跑马灯效果实例
- iOS App中UILabel的自定义及在Auto Layout中的使用
- IOS 7.1 兼容性bug 问题,UIButton,UILabel ...
- UILabel的学习
- UILabel显示HTML
- UILabel
- iOS控件--UILabel
- [Swift]UIKit学习之UILabel的用法
- label指定位置文字属性设置
- 倒计时
- 第一个IOS程序(代码版)
- 'UITextAlignmentCenter' is deprecated: first deprecated in iOS 6.0设置UILabel的居中对齐时出错
- iOS UI三大控件和应用程序启动流程
- 关于UIview UIlabel Unbutton 的一些常用的属性方法(用以优化界面)
- UILabel自动换行,自适应高度
- UILabel 的基本使用和扩展
- iOS8.0以上Label的警告处理
- Lesson1 UIWidow,UIView,UILabel的使用
- iOS开发——UILabel自动换行及高度自适应UILabel自动换行及高度自适应
- 【学习中的分享】 iOS利用UILabel和UIButton制作一个简单的计算器