Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yfme/UIImageView-PlayGIF
UIImageView category/subclass for playing GIF. Simple, high performance, low memory footprint.
https://github.com/yfme/UIImageView-PlayGIF
Last synced: 2 months ago
JSON representation
UIImageView category/subclass for playing GIF. Simple, high performance, low memory footprint.
- Host: GitHub
- URL: https://github.com/yfme/UIImageView-PlayGIF
- Owner: yfme
- License: mit
- Created: 2014-03-25T05:58:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T09:29:53.000Z (about 7 years ago)
- Last Synced: 2024-07-14T21:01:16.620Z (6 months ago)
- Language: Objective-C
- Homepage:
- Size: 3.81 MB
- Stars: 422
- Watchers: 20
- Forks: 76
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gif - UIImageView-PlayGIF - UIImageView category/subclass for playing GIF. (Libraries / Objective-C)
README
UIImageView-PlayGIF
===================
UIImageView category/subclass for playing GIF. Simple, high performance, low memory footprint.
Installation
===================
```
pod 'UIImageView-PlayGIF', '~> 1.0.1'
```Usage
===================
```
#import
```
or `#import `* Parameters:
* Pass value to one of them:
* `- gifData` NSData from a GIF
* `- gifPath` local path of a GIF
* Methods:
* `- startGIF`
* `- stopGIF`
* `- isGIFPlaying`===================
```objc
//
// UIImageView+PlayGIF.h
// UIImageView-PlayGIF
//
// Created by Yang Fei on 14-3-25.
// Copyright (c) 2014年 yangfei.me. All rights reserved.
//#import
#import
#import@interface UIImageView (PlayGIF)
@property (nonatomic, strong) NSString *gifPath;
@property (nonatomic, strong) NSData *gifData;
@property (nonatomic, strong) NSNumber *index,*frameCount,*timestamp;
- (void)startGIF;
- (void)stopGIF;
- (BOOL)isGIFPlaying;
@end
```
```objc
//
// YFGIFImageView.h
// UIImageView-PlayGIF
//
// Created by Yang Fei on 14-3-26.
// Copyright (c) 2014年 yangfei.me. All rights reserved.
//#import
#import
#import@interface YFGIFImageView : UIImageView
@property (nonatomic, strong) NSString *gifPath;
@property (nonatomic, strong) NSData *gifData;
- (void)startGIF;
- (void)stopGIF;
- (BOOL)isGIFPlaying;
@end
```## License
UIImageView-PlayGIF is available under the MIT license. See the LICENSE file for more info.