-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added comments and coding style to previous pull request #771
- Loading branch information
1 parent
9b18145
commit 6d01e80
Showing
2 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
// | ||
// UIView+WebCacheOperation.h | ||
// SDWebImage | ||
// | ||
// Created by Whirlwind on 14-5-22. | ||
// Copyright (c) 2014年 Dailymotion. All rights reserved. | ||
// | ||
/* | ||
* This file is part of the SDWebImage package. | ||
* (c) Olivier Poitrey <rs@dailymotion.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
#import <UIKit/UIKit.h> | ||
#import "SDWebImageManager.h" | ||
|
||
@interface UIView (WebCacheOperation) | ||
|
||
- (void)setImageLoadOperation:(id)operation forKey:(NSString *)Key; | ||
/** | ||
* Set the image load operation (storage in a UIView based dictionary) | ||
* | ||
* @param operation the operation | ||
* @param key key for storing the operation | ||
*/ | ||
- (void)setImageLoadOperation:(id)operation forKey:(NSString *)key; | ||
|
||
/** | ||
* Cancel all operations for the current UIView and key | ||
* | ||
* @param key key for identifying the operations | ||
*/ | ||
- (void)cancelImageLoadOperationWithKey:(NSString *)key; | ||
|
||
/** | ||
* Just remove the operations corresponding to the current UIView and key without cancelling them | ||
* | ||
* @param key key for identifying the operations | ||
*/ | ||
- (void)removeImageLoadOperationWithKey:(NSString *)key; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters