rs/SDWebImage — Issue #61: UIImageView content mode is not respected when loading image.
Author: ZebtinRis
Created: 2012-01-23 15:58:18+00:00
State: open

I have tested all morning why images are "Centered" when I explicitly set the content mode to AspectFit.

imageView.contentMode = UIViewContentModeScaleAspectFit;

if (!useSDWebImage) {
imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:stringURL]]];
}
else{
[imageView setImageWithURL:[NSURL URLWithString:stringURL]];
}

Using the above code I have verified that using SDWebImage is what is causing the sizing error, as only when I use SDWEbImage I notice the content mode is not respected.

Any ideas as to what might be going on?