2
0

YLGIFImage.h 744 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YLGIFImage.h
  3. // YLGIFImage
  4. //
  5. // Created by Yong Li on 14-3-2.
  6. // Copyright (c) 2014年 Yong Li. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface YLGIFImage : UIImage
  10. ///-----------------------
  11. /// @name Image Attributes
  12. ///-----------------------
  13. /**
  14. A C array containing the frame durations.
  15. The number of frames is defined by the count of the `images` array property.
  16. */
  17. @property (nonatomic, readonly) NSTimeInterval *frameDurations;
  18. /**
  19. Total duration of the animated image.
  20. */
  21. @property (nonatomic, readonly) NSTimeInterval totalDuration;
  22. /**
  23. Number of loops the image can do before it stops
  24. */
  25. @property (nonatomic, readonly) NSUInteger loopCount;
  26. - (UIImage*)getFrameWithIndex:(NSUInteger)idx;
  27. @end