iOS 核心動畫CAAnimation介紹

來源:互聯網
上載者:User

標籤:

CAAnimation 的繼承結構


CAAnimation是所有動畫的父類,負責控制動畫的期間和速度,是個抽象類別,不能直接使用,要使用它的字類

1.duration:動畫持續的時間

2.repeatCount:動畫重複的此時,無限迴圈可以設定成HUGE_VALF或MAXFLOAT

3.repeatDuriation:重複時間

4.removedOnCompletion:預設為YES,代表動畫完畢後就從圖層上移除,圖層會恢複到動畫執行前的狀態,如果想要動畫保持結束後的狀態,就將該屬性設為NO,不過還需要設定動畫的fillMode為kCAFillModeForwards;

5.fillMode:決定當前對象 在非activity時間的行為

6.beginTime:設定動畫順延強制的時間:持續2秒  CACurrrentMediaTime()+2;CACurrrentMediaTime()為圖層的目前時間

7.timingFuncation:控制動畫的速度

8.delegate:設定代理



iOS 核心動畫CAAnimation介紹

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.