Need help with UIImageView-PlayGIF?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

yfme
432 Stars 77 Forks MIT License 51 Commits 11 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 193,769
Objecti...
CSS
16 commits
# 7,190
Swift
snapsho...
Homebre...
functio...
5 commits
# 27,051
JavaScr...
Ruby
Rails
jdbc
3 commits
# 367,463
Objecti...
Ruby
3 commits
# 238,403
cv2
self-dr...
Keras
Raspber...
1 commit

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.