You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
910 B
37 lines
910 B
// |
|
// DCWebImageManager.h |
|
// DCWebPicScrollView |
|
// |
|
// Created by dengchen on 15/12/7. |
|
// Copyright © 2015年 name. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
@interface DCWebImageManager : NSObject |
|
|
|
|
|
|
|
//只需要设置这2个就行了 |
|
|
|
//下载失败重复下载次数,默认不重复, |
|
@property (nonatomic,assign) NSUInteger DownloadImageRepeatCount; |
|
|
|
//图片下载失败会调用该block(如果设置了重复下载次数,则会在重复下载完后,假如还没下载成功,就会调用该block) |
|
//error错误信息 |
|
//url下载失败的imageurl |
|
@property (nonatomic,copy) void(^downLoadImageError)(NSError *error,NSString *imageUrl); |
|
|
|
|
|
|
|
|
|
|
|
//内存缓存 |
|
@property (nonatomic,strong) NSMutableDictionary *webImageCache; |
|
|
|
+ (instancetype)shareManager; |
|
|
|
//下载到的图片都会被保存到webImageCache和沙盒中,key为urlString |
|
- (void)downloadImageWithUrlString:(NSString *)urlSting; |
|
|
|
@end
|
|
|