聲明處: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