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#>]

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