TuSDKCPAnimationImage Protocol Reference

Conforms to NSObject
Declared in TuSDKCPGifImage.h

– frameCount required method

总帧数

- (NSUInteger)frameCount

Declared In

TuSDKCPGifImage.h

– loopCount required method

动画播放次数, 0表示无限循环

- (NSUInteger)loopCount

Declared In

TuSDKCPGifImage.h

– imageFrameAtIndex: required method

指定帧的图片

- (UIImage *)imageFrameAtIndex:(NSUInteger)index

Parameters

index

帧索引

Return Value

image 图片

Declared In

TuSDKCPGifImage.h

– durationAtIndex: required method

获取指定帧的时长,单位: 秒

- (NSTimeInterval)durationAtIndex:(NSUInteger)index

Parameters

index

帧索引

Return Value

NSTimeInterval 对象 帧时长

Declared In

TuSDKCPGifImage.h

– contentsRectAtIndex:

显示区域

- (CGRect)contentsRectAtIndex:(NSUInteger)index

Parameters

index

帧索引

Return Value

CGRect

Declared In

TuSDKCPGifImage.h