toptierlabs / ImageCacheResize

iOS library to manage Caches of images and Resize transformations
149 stars 34 forks source link

doubleSizeIfRetina should be called in all +WebCache methods that receive a size #6

Open gtg922r opened 11 years ago

gtg922r commented 11 years ago

"doubleSizeIfRetina" was added for some methods, but not for:

- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options andResize:(CGSize)size

and

- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options andResize:(CGSize)size

Since these methods are called by the shorter methods (without placeholder image), just move the doubleSizeIfRetina call to these methods.