Merge pull request #97 from muhku/master
UIButton+WebCache: set the cached image in the UIControlStateSelected and UIControlStateHighlighted states
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -71,6 +71,8 @@ | @@ -71,6 +71,8 @@ | ||
71 | - (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image | 71 | - (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image |
72 | { | 72 | { |
73 | [self setImage:image forState:UIControlStateNormal]; | 73 | [self setImage:image forState:UIControlStateNormal]; |
74 | + [self setImage:image forState:UIControlStateSelected]; | ||
75 | + [self setImage:image forState:UIControlStateHighlighted]; | ||
74 | } | 76 | } |
75 | 77 | ||
76 | @end | 78 | @end |
-
Please register or login to post a comment