Latest 1.0.5
Homepage https://github.com/yfme/UIImageView-PlayGIF
License MIT
Platforms ios 5.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit, QuartzCore, ImageIO
Authors

UIImageView category/subclass for playing GIF. Simple, high performance, low memory footprint.

UIImageView-PlayGIF
UIImageView-PlayGIF

Installation

pod 'UIImageView-PlayGIF', '~> 1.0.1'

Usage

#import <UIImageView-PlayGIF/UIImageView+PlayGIF.h>

or #import <UIImageView-PlayGIF/YFGIFImageView.h>

  • Parameters:
    • Pass value to one of them:
    • - gifData NSData from a GIF
    • - gifPath local path of a GIF
  • Methods:
    • - startGIF
    • - stopGIF
    • - isGIFPlaying

===================

//
//  UIImageView+PlayGIF.h
//  UIImageView-PlayGIF
//
//  Created by Yang Fei on 14-3-25.
//  Copyright (c) 2014年 yangfei.me. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import <ImageIO/ImageIO.h>

@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
//
//  YFGIFImageView.h
//  UIImageView-PlayGIF
//
//  Created by Yang Fei on 14-3-26.
//  Copyright (c) 2014年 yangfei.me. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import <ImageIO/ImageIO.h>

@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.

Latest podspec

{
    "name": "UIImageView-PlayGIF",
    "version": "1.0.5",
    "summary": "UIImageView category/subclass for playing GIF. Simple, high performance, low memory footprint.",
    "homepage": "https://github.com/yfme/UIImageView-PlayGIF",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yfme": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/yfme/UIImageView-PlayGIF.git",
        "tag": "1.0.5"
    },
    "source_files": "UIImageView-PlayGIF/UIImageView-PlayGIF/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit",
        "QuartzCore",
        "ImageIO"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This