Right now, if you initialize an instance of an PINAnimatedImageView using its initializer that takes in a PINCachedAnimatedImage it will not load the image due to the way the commonInit works:
TL;DR: If you've got an animated image and don't want to use the category to download it from a URL, and instead want to use it's initializer you've got to do this:
Right now, if you initialize an instance of an
PINAnimatedImageView
using its initializer that takes in aPINCachedAnimatedImage
it will not load the image due to the way thecommonInit
works:It sets the iVar, but for the animated image to show you need:
- (void)setAnimatedImage:(PINCachedAnimatedImage *)animatedImage
TL;DR: If you've got an animated image and don't want to use the category to download it from a URL, and instead want to use it's initializer you've got to do this:
when you should be able to do this:
Locally, I've verified that if you use
animatedImage
's setter, it works fine using the initializer: