? ? CAMediaTiming 是CAAimation的屬性之一, 它里面包含了幾個(gè)實(shí)用屬性
@property CFTimeInterval beginTime; //動(dòng)畫開始時(shí)間
@property CFTimeInterval duration;//一輪動(dòng)畫執(zhí)行的時(shí)間
@property float speed; //動(dòng)畫加速/減速 執(zhí)行妨马,一個(gè)動(dòng)畫時(shí)長(zhǎng)5秒 speed = 2 則 2.5秒執(zhí)行完畢 0.5 則 10秒執(zhí)行完畢洛口,倍速增減
@property CFTimeInterval timeOffset; // 可以理解為跳到某個(gè)動(dòng)畫時(shí)間點(diǎn) 動(dòng)畫時(shí)長(zhǎng)5秒 timeOffset = 2 ?那么畫面就是執(zhí)行2秒之后的畫面!timeOffset 不受speed 影響!絕對(duì)時(shí)間
@property float repeatCount;//重復(fù)次數(shù)
@property CFTimeInterval repeatDuration; //動(dòng)畫重復(fù)時(shí)間 和repeatCount 會(huì)沖突扯躺,二者取其一
@property BOOL autoreverses;
@property(copy) NSString *fillMode;