Fix the name of the SDWebImageManagerDelegate protocol
This commit is contained in:
parent
2fa0626aaa
commit
79c5fa177d
|
@ -8,7 +8,7 @@
|
|||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "SDWebImageDownloaderDelegate.h"
|
||||
#import "SDWebImageHelperDelegate.h"
|
||||
#import "SDWebImageManagerDelegate.h"
|
||||
|
||||
@interface SDWebImageManager : NSObject <SDWebImageDownloaderDelegate>
|
||||
{
|
||||
|
|
|
@ -92,7 +92,6 @@ static SDWebImageManager *instance;
|
|||
|
||||
if (![downloaders containsObject:downloader])
|
||||
{
|
||||
NSLog(@"cancel download");
|
||||
// No more delegate are waiting for this download, cancel it
|
||||
[downloader cancel];
|
||||
[downloaderForURL removeObjectForKey:downloader.url];
|
||||
|
@ -116,9 +115,9 @@ static SDWebImageManager *instance;
|
|||
{
|
||||
id<SDWebImageManagerDelegate> delegate = [delegates objectAtIndex:index];
|
||||
|
||||
if (image && [delegate respondsToSelector:@selector(imageHelper:didFinishWithImage:)])
|
||||
if (image && [delegate respondsToSelector:@selector(webImageManager:didFinishWithImage:)])
|
||||
{
|
||||
[delegate performSelector:@selector(imageHelper:didFinishWithImage:) withObject:self withObject:image];
|
||||
[delegate performSelector:@selector(webImageManager:didFinishWithImage:) withObject:self withObject:image];
|
||||
}
|
||||
|
||||
[downloaders removeObjectAtIndex:index];
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
|
||||
@optional
|
||||
|
||||
- (void)imageHelper:(SDWebImageManager *)imageHelper didFinishWithImage:(UIImage *)image;
|
||||
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image;
|
||||
|
||||
@end
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "SDWebImageHelperDelegate.h"
|
||||
#import "SDWebImageManagerDelegate.h"
|
||||
|
||||
@interface UIImageView (WebCache) <SDWebImageManagerDelegate>
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (void)imageHelper:(SDWebImageManager *)imageHelper didFinishWithImage:(UIImage *)image
|
||||
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
|
||||
{
|
||||
self.image = image;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue