// // YLGIFImage.h // YLGIFImage // // Created by Yong Li on 14-3-2. // Copyright (c) 2014年 Yong Li. All rights reserved. // #import @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