一丶源碼
#import <pop/POPAnimation.h>
@class POPCustomAnimation;
/**
是自定義動(dòng)畫(huà)的回調(diào)塊
每個(gè)幀動(dòng)畫(huà)回調(diào)此block,最新的屬性;
target:動(dòng)畫(huà)對(duì)象,避免循環(huán);
animation:動(dòng)畫(huà)實(shí)例,確定上次回調(diào)來(lái)的當(dāng)前時(shí)間,和已經(jīng)使用的時(shí)間;避免循環(huán)使用;
return no = 動(dòng)畫(huà)完成;
*/
typedef BOOL (^POPCustomAnimationBlock)(id target, POPCustomAnimation *animation);
/**
自定義動(dòng)畫(huà)
*/
@interface POPCustomAnimation : POPAnimation
/**
初始化,并返回一個(gè)動(dòng)畫(huà)實(shí)例
*/
+ (instancetype)animationWithBlock:(POPCustomAnimationBlock)block;
/**
當(dāng)前動(dòng)畫(huà)的時(shí)間
*/
@property (readonly, nonatomic) CFTimeInterval currentTime;
/**
上次回調(diào)的時(shí)間
*/
@property (readonly, nonatomic) CFTimeInterval elapsedTime;
@end
二丶問(wèn)題及實(shí)例
三丶其他:
翻譯有問(wèn)題,留言告訴我下,謝謝;
以及有使用問(wèn)題也可以留言,一起探討探討;