Permalink
Browse files

Set placeholder on all UIButton stats (fix #120)

  • Loading branch information...
1 parent b6e0630 commit eff6cac284f1a71f408f688ee53910c2a865797a @rs committed May 14, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 SDWebImage/UIButton+WebCache.m
@@ -29,6 +29,9 @@ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder opt
[manager cancelForDelegate:self];
[self setImage:placeholder forState:UIControlStateNormal];
+ [self setImage:placeholder forState:UIControlStateSelected];
+ [self setImage:placeholder forState:UIControlStateHighlighted];
+
if (url)
{
@@ -55,6 +58,8 @@ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder opt
[manager cancelForDelegate:self];
[self setImage:placeholder forState:UIControlStateNormal];
+ [self setImage:placeholder forState:UIControlStateSelected];
+ [self setImage:placeholder forState:UIControlStateHighlighted];
if (url)
{

0 comments on commit eff6cac

Please sign in to comment.