TuSDKTSAnimation Class Reference

Inherits from NSObject
Declared in TuSDKTSAnimation.h

Overview

自定义动画

  interval

动画执行帧间隔时间 (默认: 0.01)

@property (nonatomic) NSTimeInterval interval

Declared In

TuSDKTSAnimation.h

  duration

动画执行时间

@property (nonatomic) NSTimeInterval duration

Declared In

TuSDKTSAnimation.h

  tween

动画速度基类

@property (nonatomic, retain) TuSDKTween *tween

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

– start

动画开始

- (void)start

Declared In

TuSDKTSAnimation.h

– startWithBlock:

动画开始

- (void)startWithBlock:(TuSDKTSAnimationBlock)block

Declared In

TuSDKTSAnimation.h

– stop

动画停止

- (void)stop

Declared In

TuSDKTSAnimation.h

– destory

销毁

- (void)destory

Declared In

TuSDKTSAnimation.h