6.14UIView动画

动画快的事件方式

nil代表空对象

null代表空指针

动画需要配置的参数

1、动画时间

2、动画曲线

3.动画代理

4.代理方法

5.、动画终点


bounds

<UIScrollerViewDelegate>


frame 位置和大小

bounds

transform 变形



矩阵



UIView-------------- CGAffineTransformTranslate


rotate在上一次的基础上再转角度


UIView做的动画都是隐式动画


CALayer


code4app.com


开始创建动画的

   [UIView beginAnimations:<#(NSString *)#> context:<#(void *)#>];

表示结束创建动画的

   [UIView commitAnimations];


一句话创建动画的    [UIView animateWithDuration:<#(NSTimeInterval)#> delay:<#(NSTimeInterval)#> options:<#(UIViewAnimationOptions)#> animations:<#^(void)animations#> completion:<#^(BOOL finished)completion#>]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章