You may want to use an instance of SDWebImageManager
instead, which includes methods for cancelling requests.
If you're showing the image in a UIImageView in a cell, however, you should just use the UIImageView (WebCache)
class which extends UIImageView and allows you to cancel images you're loading with the method - (void)cancelCurrentImageLoad;
.
You should use that method in UITableViewCell
's prepareForReuse
method.