isRunning method added at SDWebImageManager

This commit is contained in:
kawanet 2012-12-25 22:02:48 +09:00
parent c876cafa7a
commit e8b1532cba
2 changed files with 10 additions and 0 deletions

View File

@ -118,4 +118,9 @@ typedef void(^SDWebImageCompletedWithFinishedBlock)(UIImage *image, NSError *err
*/
- (void)cancelAll;
/**
* Check one or more operations running
*/
- (BOOL)isRunning;
@end

View File

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