Set the cached image in UIControlStateSelected and UIControlStateHighlighted.
This is required that the UIViewContentModeScaleAspectFit contentMode works correctly for UIButton.
This commit is contained in:
parent
f89508d6f7
commit
7283ce7bb0
|
@ -71,6 +71,8 @@
|
|||
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
|
||||
{
|
||||
[self setImage:image forState:UIControlStateNormal];
|
||||
[self setImage:image forState:UIControlStateSelected];
|
||||
[self setImage:image forState:UIControlStateHighlighted];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue