From 94217b294ccd75a34787eb04d6e273e99536e45b Mon Sep 17 00:00:00 2001
From: 重庆迈尖科技有限公司
Date: 星期三, 30 一月 2019 15:12:32 +0800
Subject: [PATCH] no message

---
 Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h b/Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h
index f5e95fa..0be284b 100644
--- a/Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h
+++ b/Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h
@@ -7,20 +7,19 @@
  */
 
 #import "SDWebImageCompat.h"
+#import "SDWebImageOperation.h"
 
-#if SD_UIKIT || SD_MAC
-
-#import "SDWebImageManager.h"
-
+// These methods are used to support canceling for UIView image loading, it's designed to be used internal but not external.
+// All the stored operations are weak, so it will be dalloced after image loading finished. If you need to store operations, use your own class to keep a strong reference for them.
 @interface UIView (WebCacheOperation)
 
 /**
- *  Set the image load operation (storage in a UIView based dictionary)
+ *  Set the image load operation (storage in a UIView based weak map table)
  *
  *  @param operation the operation
  *  @param key       key for storing the operation
  */
-- (void)sd_setImageLoadOperation:(nullable id)operation forKey:(nullable NSString *)key;
+- (void)sd_setImageLoadOperation:(nullable id<SDWebImageOperation>)operation forKey:(nullable NSString *)key;
 
 /**
  *  Cancel all operations for the current UIView and key
@@ -37,5 +36,3 @@
 - (void)sd_removeImageLoadOperationWithKey:(nullable NSString *)key;
 
 @end
-
-#endif

--
Gitblit v1.8.0