| 123456789101112131415161718192021222324252627 |
- //
- // LeslieAsyncImageDownloader.h
- // AsyncUIImageView
- //
- // Created by Leslie.Fang on 14-8-11.
- // Copyright (c) 2017年 Enway. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "LeslieImageCache.h"
- typedef void(^ImageDownloadedBlock)(UIImage *image, NSError *error, NSURL *imageURL);
- @interface LeslieAsyncImageDownloader : NSObject
- + (id)sharedImageLoader;
- - (void)downloadImageWithURL:(NSURL *)url complete:(ImageDownloadedBlock)completeBlock;
- - (void)downloadFileWithURL:(NSURL *)url filePath:(NSString*)path;
- - (void)downloadImageWithMultipleURL:(NSURL *)url complete:(ImageDownloadedBlock)completeBlock;
- + (NSData *)resetSizeOfImageData:(UIImage *)source_image maxSize:(NSInteger)maxSize;
- @end
|