Skip to content

Commit

Permalink
merge mine
Browse files Browse the repository at this point in the history
  • Loading branch information
heroims committed May 28, 2015
1 parent 4fcc438 commit 8391fe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SDWebImage/UIButton+WebCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ - (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placehold
animation.type =kCATransitionFade;
[sself.layer addAnimation:animation forKey:@"fade"];
}

[sself setImage:image forState:state];
}
if (completedBlock && finished) {
Expand Down Expand Up @@ -127,7 +127,7 @@ - (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state
__strong UIButton *sself = wself;
if (!sself) return;
if (image) {
if (cacheType==SDImageCacheTypeNone) {
if (cacheType==SDImageCacheTypeNone) {
CATransition *animation = [CATransition animation];
animation.delegate = sself;
animation.duration = 1;
Expand Down
1 change: 1 addition & 0 deletions SDWebImage/UIImageView+WebCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ - (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder
animation.type =kCATransitionFade;
[wself.layer addAnimation:animation forKey:@"fade"];
}

wself.image = image;
[wself setNeedsLayout];
} else {
Expand Down

0 comments on commit 8391fe5

Please sign in to comment.