SDWebImage: Crash when calling cancelCurrentImageLoad on UIIMageView

From the last update, when I call cancelCurrentImageLoad from my UIIMageView the app crashes with this message -[UIImageView sd_cancelImageLoadOperationWithKey:]: unrecognized selector sent to instance 0x172490b0 Also this metho seems to be deprecated, but SDWebImage suggest me to replace as follows cancelCurrentImageLoad’ is deprecated: Use cancelCurrentImageLoad. Think this one is only a typing error.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

In order to resolve this crash, you need to import the newly added files:

UIView+WebCacheOperation.h UIView+WebCacheOperation.m UIImageView+HighlightedWebCache.h UIImageView+HighlightedWebCache.m