...
|
...
|
@@ -68,7 +68,7 @@ static char imageURLStorageKey; |
|
|
|
|
|
self.imageURLStorage[@(state)] = url;
|
|
|
|
|
|
__weak UIButton *wself = self;
|
|
|
__weak __typeof(self)wself = self;
|
|
|
id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
|
|
|
if (!wself) return;
|
|
|
dispatch_main_sync_safe(^{
|
...
|
...
|
@@ -111,7 +111,7 @@ static char imageURLStorageKey; |
|
|
[self setBackgroundImage:placeholder forState:state];
|
|
|
|
|
|
if (url) {
|
|
|
__weak UIButton *wself = self;
|
|
|
__weak __typeof(self)wself = self;
|
|
|
id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
|
|
|
if (!wself) return;
|
|
|
dispatch_main_sync_safe(^{
|
...
|
...
|
|