Latest 1.0.2
Homepage https://github.com/renzifeng/ZFDownload
License MIT
Platforms ios 6.0, requires ARC
Dependencies ASIHTTPRequest
Frameworks UIKit
Authors





特性

  • 支持断点下载
  • 异常退出,再次打开保留下载进度
  • 实时下载进度
  • 实时下载速度

要求

  • iOS 7+
  • Xcode 6+

ZFDownload的具体实现,可以看ZFPlayer,已获取1000多颗star:ZFPlayer


效果图

图片效果演示

安装

Cocoapods

pod 'ZFDownload'

使用

// 设置代理<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;

联系我

License

ZFDownload is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZFDownload",
    "version": "1.0.2",
    "summary": "Download manager based on ASIHTTPRequest",
    "homepage": "https://github.com/renzifeng/ZFDownload",
    "license": "MIT",
    "authors": {
        "renzifeng": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/renzifeng/ZFDownload.git",
        "tag": "1.0.2"
    },
    "source_files": "ZFDownload/**/*.{h,m}",
    "frameworks": "UIKit",
    "dependencies": {
        "ASIHTTPRequest": []
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This