GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yfme/UIImageView-PlayGIF: UIImageView category/subclass for playing GIF. Simple, high performance, low memory footprint.

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
UIImageView-PlayGIF.xcodeproj
UIImageView-PlayGIF.xcodeproj
 
 
UIImageView-PlayGIF
UIImageView-PlayGIF
 
 
UIImageView-PlayGIFTests
UIImageView-PlayGIFTests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
UIImageView-PlayGIF.podspec
UIImageView-PlayGIF.podspec
 
 
screenshot2.gif
screenshot2.gif
 
 
screenshot3.gif
screenshot3.gif
 
 

Repository files navigation

UIImageView-PlayGIF

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

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.

About

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

Resources

Readme
MIT license
Activity

Stars

416 stars

Watchers

18 watching

Forks

72 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.