Skip to content

dareddare/DownloadManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

This is a small class I created in a afternoon, which never got a lot of debugging. Treat it like one. Enter at your peril! Feel free to fork and send pull requests.

Features

  • Downloads will be added to a queue where one is downloaded at a time
  • If you try to download contents from the exact same url twice, it will in fact only be downloaded once

How to use:

#import "DownloadManager.h"

And then:

NSString *urlString = @"..";
[[DownloadManager defaultManager] addDownload:[Download downloadFromURLString:urlString] 
withCompletion:^(NSString *url,NSData *data, NSDate *completionDate) {
	//Do something with the data!
}];

/Johannes Lund

About

A small download que for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors