TuSDKTSAnimation Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKTSAnimation.h |
interval
动画执行帧间隔时间 (默认: 0.01)
@property (nonatomic) NSTimeInterval interval
Declared In
TuSDKTSAnimation.h
block
动画执行回调
@property (nonatomic, strong) TuSDKTSAnimationBlock block
Declared In
TuSDKTSAnimation.h
+ animWithDuration:block:
创建自定义动画
+ (TuSDKTSAnimation *)animWithDuration:(NSTimeInterval)duration block:(TuSDKTSAnimationBlock)block
Parameters
duration |
动画执行时间 (单位:秒) |
---|---|
block |
动画回调 |
Return Value
自定义动画
Declared In
TuSDKTSAnimation.h
+ animWithDuration:tween:block:
创建自定义动画
+ (TuSDKTSAnimation *)animWithDuration:(NSTimeInterval)duration tween:(TuSDKTween *)tween block:(TuSDKTSAnimationBlock)block
Parameters
duration |
动画执行时间 (单位:秒) |
---|---|
tween |
动画加速度 |
block |
动画回调 |
Return Value
自定义动画
Declared In
TuSDKTSAnimation.h
– startWithBlock:
动画开始
- (void)startWithBlock:(TuSDKTSAnimationBlock)block
Declared In
TuSDKTSAnimation.h