mayoff / uiimage-from-animated-gif

A UIImage category that loads animated GIFs
Creative Commons Zero v1.0 Universal
877 stars 164 forks source link

image disappearing in UITableViewCell #2

Closed taberrr closed 11 years ago

taberrr commented 11 years ago

I'm using an animated image inside a UITableViewCell and when I scroll the image off screen, all the images disappear and I only see the background of the UIImageView.

mayoff commented 11 years ago

Does the problem happen if you use individual PNG files for the animation frames and create the animated image using animatedImageWithName:duration: or animatedImageWithImages:duration:?

taberrr commented 11 years ago

Ahh, yes it does still happen. So it must not be directly related to uiimage-from-animated-gif, but still seems like a weird bug/issue. :( Any thoughts on a workaround?

If I NSLog(@"count: %u", myAnimatedImage.images.count) they are still there, but there is no visible image! So weird.

mayoff commented 11 years ago

You should try asking on stackoverflow. You'll want to include your implementation of tableView:cellForRowAtIndexPath: in your question.