Latest 1.0.0
Homepage https://github.com/Damsir/DistDownload
License MIT
Platforms ios 8.0, requires ARC
Dependencies ASIHTTPRequest
Frameworks UIKit
Authors

文件下载

特性

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

要求

  • iOS 8+
  • Xcode 7+

效果图

图片效果演示

安装

Cocoapods

pod 'DistDownload'

使用

// 设置代理<DistDownloadDelegate>
self.downloadManage.downloadDelegate = self;
// 指定下载URL,文件名称...
[[DistDownloadManager sharedDownloadManager] downFileUrl:urlStr filename:name fileimage:nil];
// 设置最多同时下载个数(默认是3)
[DistDownloadManager sharedDownloadManager].maxCount = 2;

在cell上获取实时下载进度,遵守 DistDownloadDelegate代理,然后实现


#pragma mark - DistDownloadDelegate

// 开始下载
- (void)startDownload:(DistHttpRequest *)request;

// 下载中
- (void)updateCellProgress:(DistHttpRequest *)request;

// 下载完成
- (void)finishedDownload:(DistHttpRequest *)request;

联系我

License

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

Latest podspec

{
    "name": "DistDownload",
    "version": "1.0.0",
    "summary": "u6587u4ef6u4e0bu8f7duff1au65adu70b9u4e0bu8f7duff0cu652fu6301u540eu53f0u4e0bu8f7duff0cu518du6b21u6253u5f00u7a0bu5e8fu3001u5f02u5e38u9000u51fau8bb0u5f55u4e0bu8f7du8fdbu5ea6",
    "authors": {
        "Damrin": "[email protected]"
    },
    "homepage": "https://github.com/Damsir/DistDownload",
    "source": {
        "git": "https://github.com/Damsir/DistDownload.git",
        "tag": "1.0.0"
    },
    "license": "MIT",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": [
        "DistDownload",
        "DistDownload/**/*.{h,m}"
    ],
    "frameworks": "UIKit",
    "dependencies": {
        "ASIHTTPRequest": [
            "~> 1.8.2"
        ]
    }
}

Pin It on Pinterest

Share This