UI 动画之UIView动画之间的一些方法
2015-10-06 19:43
459 查看
放在开启动画和结束动画之间的。
//设置动画间隔
[UILabel
setAnimationDuration:3];
//设置动画延时
[UILabel
setAnimationDelay:0.5];
//设置动画重复的次数
[UILabel
setAnimationRepeatCount:2];
//设置动画反转
[UILabel
setAnimationRepeatAutoreverses:YES];
//设置整个过程中的动画的时间分配
[UILabel
setAnimationCurve:UIViewAnimationCurveEaseInOut];
//设置代理
[UILabel
setAnimationDelegate:self];
//下面两个方法,必须先设置代理,才会起效。
//设置开始动画前执行的方法
[UILabel
setAnimationWillStartSelector:@selector(begin:)];
//设置动画结束后执行的方法
[UILabel
setAnimationDidStopSelector:@selector(end:)];
//设置动画间隔
[UILabel
setAnimationDuration:3];
//设置动画延时
[UILabel
setAnimationDelay:0.5];
//设置动画重复的次数
[UILabel
setAnimationRepeatCount:2];
//设置动画反转
[UILabel
setAnimationRepeatAutoreverses:YES];
//设置整个过程中的动画的时间分配
[UILabel
setAnimationCurve:UIViewAnimationCurveEaseInOut];
//设置代理
[UILabel
setAnimationDelegate:self];
//下面两个方法,必须先设置代理,才会起效。
//设置开始动画前执行的方法
[UILabel
setAnimationWillStartSelector:@selector(begin:)];
//设置动画结束后执行的方法
[UILabel
setAnimationDidStopSelector:@selector(end:)];
相关文章推荐
- UISearchBar
- WinForm界面开发之布局控件"WeifenLuo.WinFormsUI.Docking"的使用
- UI 动画之反射变换的平移
- UIsearchBar
- SpriteBuilder中本地化的局限性
- SpriteBuilder中本地化的局限性
- SpriteBuilder中本地化的局限性
- UI13_Block传值练习
- UI13_Block
- 两个Arduino之间进行串口通信出错的原因
- android UI界面设计(2)
- 关于@RequestBody 不能json to pojo
- iOS开发UI篇—IOS开发中Xcode的一些使用技巧
- ios图片等比例自适应UIImageview
- Android:Material Design(四) UI控件
- [译] --- GPUImage README.md
- UGUI学习笔记6——官方教程Draggable Panel练习
- StringBuffer StringBuilder
- 关于ios9中得AddressBook和AddressBookUI框架过时问题
- IOS开发UI进阶之UITableView三