What I want to achieve is to enable the PFImageView
class (from Parse framework) respond to SDWebImage
methods. SDWebImage
is a framework in itself, but since it essentially applies a category to UIImageView
- and PFImageView
inherits from UIImageView
- it seems that it should be possible to achieve this.
I tried creating a separate category PFImageView+SDWebImage
, where in the .h file I simply added
#import <SDWebImage/UIImageView+WebCache.h>
but this is clearly not enough as I still receive an crash with an error saying [PFImageView setImageWithURL:placeholderImage:completed:]: unrecognized selector sent to instance
.
How does one achieve what I'm trying to do here correctly?