123456789101112131415161718192021222324252627282930313233343536 |
- //
- // YLGIFImage.h
- // YLGIFImage
- //
- // Created by Yong Li on 14-3-2.
- // Copyright (c) 2014年 Yong Li. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface YLGIFImage : UIImage
- ///-----------------------
- /// @name Image Attributes
- ///-----------------------
- /**
- A C array containing the frame durations.
-
- The number of frames is defined by the count of the `images` array property.
- */
- @property (nonatomic, readonly) NSTimeInterval *frameDurations;
- /**
- Total duration of the animated image.
- */
- @property (nonatomic, readonly) NSTimeInterval totalDuration;
- /**
- Number of loops the image can do before it stops
- */
- @property (nonatomic, readonly) NSUInteger loopCount;
- - (UIImage*)getFrameWithIndex:(NSUInteger)idx;
- @end
|