GithubHelp home page GithubHelp logo

yfme / uiimageview-playgif Goto Github PK

View Code? Open in Web Editor NEW
422.0 422.0 76.0 3.9 MB

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

License: MIT License

Objective-C 97.83% Ruby 2.17%

uiimageview-playgif's People

Contributors

akteamyang avatar mshibuya avatar stephencelis avatar vogonistic avatar yfme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uiimageview-playgif's Issues

您好!提一个问题。

@yfme
Hi!
请问为什么播放gif文件会有延迟的情况呢?我看了您会获取delayTime的逻辑,如果手动设置固定值,这样是可以的,如果gif有一些故意加快了,但是却被固定了大小,这样就失去gif原本的效果,有好的解决方案吗?

Jack

Cocoapods outdated

Can you create the 1.0.5 tag (or change the podspec to say 1.0.3) and push an update to cocoapods?

一个小bug

  • (void)stopGIFView:(YFGIFImageView *)view{
    [_gifViewHashTable removeObject:view];
    if (_gifViewHashTable.count<1 && !_displayLink) {
    [self stopDisplayLink];
    }
    }
    _displayLink应该保证非空吧,否则下面的 [self stopDisplayLink]就完全没有意义了

Playing GIF is slow,the speed issue?

When I use imageView to play GIF, the speed is too slow.
This code influence:
if (self.timestamp.floatValue < nextFrameDuration) {
self.timestamp = [NSNumber numberWithFloat:self.timestamp.floatValue+[PlayGIFManager shared].displayLink.duration];
return;
}
IF I Comment this code, the speed is faster. I guess the Duration is Wrong.
How can I fix it??
Thanks.

关于网络GIF卡顿的问题

我看到,读取本地GIF滑动是不会卡顿的。当滑动的时候你做了停止GIF的处理,这很好!大大降低了卡顿,但是一旦使用的网络GIF图片,那么滑动势必需要下载。这样导致没下载完成的图片会卡顿。能否解决这种问题呢?

提个改进

Hi, @yfme ,我在使用PlayGIF的时候会看到load方法中swizzle了removeFromSuperview,希望在stopGIF调用时,加一个判断,判断当前UIImageView是否是isGIFPlaying

tebleView problem

A plurality of different GIF, slide UICollectionView squares, you will find gif dislocation problem, I do not know how to solve

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.