Merge pull request #260 from kawanet/master

isRunning method added at SDWebImageManager
This commit is contained in:
Olivier Poitrey 2013-01-16 02:26:04 -08:00
commit 555a320b9e
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -134,6 +134,11 @@
[self.runningOperations removeAllObjects]; [self.runningOperations removeAllObjects];
} }
- (BOOL)isRunning
{
return self.runningOperations.count > 0;
}
@end @end
@implementation SDWebImageCombinedOperation @implementation SDWebImageCombinedOperation