Giter Site home page Giter Site logo

ylgifimage's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @liyong03
  • ๐Ÿ‘€ Iโ€™m interested in ๐Ÿ“– โšฝ๏ธ ๐Ÿ“ท ๐ŸŽฟ
  • ๐ŸŒฑ Iโ€™m currently learning Rust
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on open source projects
  • ๐Ÿ“ซ How to reach me: [email protected]

ylgifimage's People

Contributors

gfosco avatar liyong03 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ylgifimage's Issues

I found a more serious problem

UICollectionView 900 pictures when the sliding speed will cause UICollectionView reuse problems, leading to the use of the entire project to YLImageView controls are problems currently found in high-speed sliding reuse problem occurs, exit the view controller, dealloc this function has not been called

Doesn't display image

UIImageView works great while YLImageView doesn't in this code::

YLImageView *slideImageView = [[YLImageView alloc] init];
slideImageView.image = [YLGIFImage imageNamed:[slideItem imageName]];

[slideItem imageName] is the name of the image.

Later I am adding and repositioning the slideImageView to be visible on screen.

App crashes while reusing the YLImageView with different gif image inside the UICollectionViewCell.

App crashes while reusing the YLImageView with different gif image inside the UICollectionViewCell.
Please find the crash log

2014-06-30 15:05:54.640 AppName[3184:60b] error: Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator" UserInfo=0xd7648f0 {NSLocalizedDescription=remote notifications are not supported in the simulator}
2014-06-30 15:06:07.428 AppName[3184:60b] -[NSNull _isResizable]: unrecognized selector sent to instance 0x4c5f068

App crashes at setImage method of YLImageView at 88 line([super setImage:image.images[0]];)

Podspec

Please add this to pods, its a nice library and comes handy.

This video can help you do it easily

Thank you

Dealing with a downloaded source gif

So the gif I get is downloaded from the web, saved as an NSData instance so I can retrieve it offline. When i use the initializer imageWithData:scale: it loads the images but I get a [NSNULL isResizeable] with the debugger stopped at line 88 of YLImageView.m.

Love what you are doing. Is there another method I should be using?

memory issue

Xcode7.3 ios10.3 , when load GIF , memory will Constantly Rising until app crash

I found a more serious problem

UICollectionView900 photos asynchronous thread sliding too fast, resulting in the use of the entire project of the UIImageView, appeared determined current problems with fast asynchronous slip back problem, quit view controller, dealloc will not be called

Refresh UI crashed in iOS 9

When refreshing the image view's image when the view is not showing, I used
[view performSelectorOnMainThread:@selector(setImage:) withObject:[UIImage imageWithData:imageData] waitUntilDone:NO];
But still crashed, Xcode reports:
This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.

i found a high bug in your project

hello thank you for your project, and i found a bug when i run demo on my phone not simlulator. shorter to say that the memory increase with a high speed . i alloc 5 gif instances - - unfortunately,the memory has been over 200MB

Exception when using images from URL

In my app such exception thrown:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _isResizable]: unrecognized selector sent to instance 0x254e068'

the code where I'm using the lib is as follows:

NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:item.thumbnail]];
UIImage *img = [YLGIFImage imageWithData:imageData];
cell.itemThumb.image = img;

Setting an UIImage to YLImageView not shown under iOS8

Hi, Thanks for your excellent work.
Recently I found when trying to set an UIImage to YLImageView under iOS8, the image does not shown as expected sometimes.
The problem can be reproduced by calling [aYLImageView setImage:anUIImageInstance]; under iOS8.
I found this can be fixed by comment out line 106 in YLImageView.m:

- (void)setAnimatedImage:(YLGIFImage *)animatedImage
{
    _animatedImage = animatedImage;
    if (animatedImage == nil) {
       //self.layer.contents = nil;
    }
}

I am not sure this is a proper fix. Could someone explain this? Thanks.

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.