您的位置:首页 > 产品设计 > UI/UE

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:)];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: