Skip to content
This repository
Browse code

Set placeholder on all UIButton stats (fix #120)

  • Loading branch information...
commit eff6cac284f1a71f408f688ee53910c2a865797a 1 parent b6e0630
Olivier Poitrey authored May 14, 2012

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  SDWebImage/UIButton+WebCache.m
5  SDWebImage/UIButton+WebCache.m
@@ -29,6 +29,9 @@ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder opt
29 29
     [manager cancelForDelegate:self];
30 30
 
31 31
     [self setImage:placeholder forState:UIControlStateNormal];
  32
+    [self setImage:placeholder forState:UIControlStateSelected];
  33
+    [self setImage:placeholder forState:UIControlStateHighlighted];
  34
+
32 35
 
33 36
     if (url)
34 37
     {
@@ -55,6 +58,8 @@ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder opt
55 58
     [manager cancelForDelegate:self];
56 59
 
57 60
     [self setImage:placeholder forState:UIControlStateNormal];
  61
+    [self setImage:placeholder forState:UIControlStateSelected];
  62
+    [self setImage:placeholder forState:UIControlStateHighlighted];
58 63
 
59 64
     if (url)
60 65
     {

0 notes on commit eff6cac

Please sign in to comment.
Something went wrong with that request. Please try again.