UIView(WebCacheOperation)分類說明


聲明處:UIView+WebCacheOperation.h


任務

  • - sd_setImageLoadOperation:forKey:
  • - sd_cancelImageLoadOperationWithKey:
  • - sd_removeImageLoadOperationWithKey:

實例方法

sd_cancelImageLoadOperationWithKey:

- (void)sd_cancelImageLoadOperationWithKey:(nullable NSString *)key

討論

取消當前UIView中key相關的所有操作。

參數

key

識別操作的key。

聲明處

UIView+WebCacheOperation.h

sd_removeImageLoadOperationWithKey:

- (void)sd_removeImageLoadOperationWithKey:(nullable NSString *)key

討論

僅僅移除當前視圖中key對應的操作,而不取消他們。

參數

key

識別操作的key。

聲明處

UIView+WebCacheOperation.h

sd_setImageLoadOperation:forKey:

- (void)sd_setImageLoadOperation:(nullable id)operation forKey:(nullable NSString *)key

討論

設置圖片的加載操作(存儲在基于字典的UIView中)。

參數

operation

操作。

key

存儲操作的key。

聲明處

UIView+WebCacheOperation.h

// END

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容