UIView Animation 的参数详解

.[UIView setAnimationDuration:0.2];//设置动画持续的时间

[UIView setAnimationDelegate:self];//设置代理//动画块的某个方法(最下方),委托到本类的实例

  [UIView setAnimationDidStopSelector:@selector(resetView)];//动画结束后去执行的方法

[UIView setAnimationRepeatCount:99999999];//设置动画的次数

CGAffineTransform 放射变换的方式

[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];//设者动画的方式

+ (void)setAnimationDelay:(NSTimeInterval)delay; //default = 0.0延迟多少时间开始执行动画
+ (void)setAnimationStartDate:(NSDate *)startDate; //default = now ([NSDate date])动画开始日期

+ (void)setAnimationRepeatAutoreverses:(BOOL)repeatAutoreverses; //default = NO. YES的话,动画(非最后一次)结束后动态复原到最开始状态
+ (void)setAnimationBeginsFromCurrentState:(BOOL)fromCurrentState; //default = NO. YES,停止之前的动画,从现在这里开始新动画the current view position is always used for new animations -- allowing animations to "pile up" on each other. Otherwise, the last end state is used for the animation (the default).

+ (void)setAnimationTransition:(UIViewAnimationTransition)transition forView:(UIView *)view cache:(BOOL)cache; //添加动画到view上,cache是YES的时候比较高效,但是动画过程中不能更新界面上的内容,NO时每一帧都重新画,可以实时更新
+ (void)setAnimationsEnabled:(BOOL)enabled; //是否忽略一些动画设置


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值