-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathYLGIFImage.h
More file actions
36 lines (27 loc) · 795 Bytes
/
YLGIFImage.h
File metadata and controls
36 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// 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, readwrite) NSUInteger loopCount;//easeeeeeeeee 由 readonly 权限改为 readwrite
- (UIImage*)getFrameWithIndex:(NSUInteger)idx;
@end