TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2016 |
Maintained by renzifeng.
// 设置代理<ZFDownloadDelegate>
self.downloadManage.downloadDelegate = self;
// 指定下载URL,文件名称...
[[ZFDownloadManager sharedDownloadManager] downFileUrl:urlStr filename:name fileimage:nil];
// 设置最多同时下载个数(默认是3)
[ZFDownloadManager sharedDownloadManager].maxCount = 2;
在cell上获取实时下载进度,遵守 ZFDownloadDelegate代理,然后实现
#pragma mark - ZFDownloadDelegate
// 开始下载
- (void)startDownload:(ZFHttpRequest *)request;
// 下载中
- (void)updateCellProgress:(ZFHttpRequest *)request;
// 下载完成
- (void)finishedDownload:(ZFHttpRequest *)request;
ZFDownload is available under the MIT license. See the LICENSE file for more info.