Latest 0.0.1
Homepage https://github.com/AllisonWangJiaoJiao/FDownLoad
License MIT
Platforms ios 9.0, requires ARC
Authors

FDownLoad断点下载

Usage
    NSURL *url = [NSURL URLWithString:@"https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3349541936,792281887&fm=27&gp=0.jpg"];
    self.url = url;
    NSURL *url2 = [NSURL URLWithString:@"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2244703782,1847734642&fm=27&gp=0.jpg"];

    [[FDownLoaderManager shareInstance]downLoader:url downLoadInfo:^(long long totalSize) {
        NSLog(@"下载信息:%lld",totalSize);
    } progress:^(float progress) {
        NSLog(@"下载进度:%f",progress);
    } success:^(NSString *cachePath) {
        NSLog(@"下载成功路径:%@",cachePath);
    } failed:^{
        NSLog(@"下载失败");
    }];

    [[FDownLoaderManager shareInstance]downLoader:url2 downLoadInfo:^(long long totalSize) {
        NSLog(@"下载信息2:%lld",totalSize);
    } progress:^(float progress) {
        NSLog(@"下载进度2:%f",progress);
    } success:^(NSString *cachePath) {
        NSLog(@"下载成功路径2:%@",cachePath);
    } failed:^{
        NSLog(@"下载失败2");
    }];
}

详情请移步简书iOS 下载功能(断点续传).

Latest podspec

{
    "name": "FDownLoad",
    "version": "0.0.1",
    "summary": "FDownLoadu65adu70b9u4e0bu8f7d",
    "homepage": "https://github.com/AllisonWangJiaoJiao/FDownLoad",
    "license": "MIT",
    "authors": {
        "AllisonWangJiaoJiao": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/AllisonWangJiaoJiao/FDownLoad.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "FDownLoadDemo",
        "FDownLoadDemo/Tools/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This