Latest 1.0.2
Homepage https://github.com/QianChia/QConnectionDownloader
License MIT
Platforms ios 6.0, requires ARC
Authors

Logo

  • A simple encapsulation of NSURLConnection files to download.

GitHub:QianChia | Blog:QianChia(Chinese)


Installation

From CocoaPods

  • pod 'QConnectionDownloader'

Manually

  • Drag all source files under floder QConnectionDownloader to your project.
  • Import the main header file:#import "QConnectionDownloader.h"

Examples

  • Start Download

    
        [[QConnectionDownloader defaultDownloader] q_downloadWithURL:url progress:^(float progress) {
    
            dispatch_async(dispatch_get_main_queue(), ^{
                ];
            });
    
        } successed:^(NSString *targetPath) {
    
            NSLog(@"successed:%@", targetPath);
    
        } failed:^(NSError *error) {
    
            NSLog(@"failed:%@", error);
        }];
    
  • Pause Download

    
        [[QConnectionDownloader defaultDownloader] q_pauseWithURL:url];
    
  • Cancel Download

    
        [[QConnectionDownloader defaultDownloader] q_cancelWithURL:url];
    

Latest podspec

{
    "name": "QConnectionDownloader",
    "version": "1.0.2",
    "platforms": {
        "ios": "6.0"
    },
    "license": "MIT",
    "homepage": "https://github.com/QianChia/QConnectionDownloader",
    "authors": {
        "QianChia": "[email protected]"
    },
    "summary": "A simple encapsulation of NSURLConnection files to download",
    "source": {
        "git": "https://github.com/QianChia/QConnectionDownloader.git",
        "tag": "1.0.2"
    },
    "source_files": "QConnectionDownloader",
    "requires_arc": true
}

Pin It on Pinterest

Share This