Merge pull request #260 from kawanet/master
isRunning method added at SDWebImageManager
This commit is contained in:
commit
555a320b9e
|
@ -118,4 +118,9 @@ typedef void(^SDWebImageCompletedWithFinishedBlock)(UIImage *image, NSError *err
|
||||||
*/
|
*/
|
||||||
- (void)cancelAll;
|
- (void)cancelAll;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check one or more operations running
|
||||||
|
*/
|
||||||
|
- (BOOL)isRunning;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -134,6 +134,11 @@
|
||||||
[self.runningOperations removeAllObjects];
|
[self.runningOperations removeAllObjects];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)isRunning
|
||||||
|
{
|
||||||
|
return self.runningOperations.count > 0;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation SDWebImageCombinedOperation
|
@implementation SDWebImageCombinedOperation
|
||||||
|
|
Loading…
Reference in New Issue