Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximbilan/mbfiledownloader

A file downloader.
https://github.com/maximbilan/mbfiledownloader

download downloader file ios ios-app objective-c

Last synced: 3 months ago
JSON representation

A file downloader.

Awesome Lists containing this project

README

        

# MBFileDownloader

[![Version](https://img.shields.io/cocoapods/v/MBFileDownloader.svg?style=flat)](http://cocoadocs.org/docsets/MBFileDownloader)
[![License](https://img.shields.io/cocoapods/l/MBFileDownloader.svg?style=flat)](http://cocoadocs.org/docsets/MBFileDownloader)
[![Platform](https://img.shields.io/cocoapods/p/MBFileDownloader.svg?style=flat)](http://cocoadocs.org/docsets/MBFileDownloader)
[![CocoaPods](https://img.shields.io/cocoapods/dt/MBFileDownloader.svg)](https://cocoapods.org/pods/MBFileDownloader)
[![CocoaPods](https://img.shields.io/cocoapods/dm/MBFileDownloader.svg)](https://cocoapods.org/pods/MBFileDownloader)

Simple file downloader for iOS based on NSURLConnection.

Downloader writes the data into a file, not into memory.


## Installation
CocoaPods:


pod 'MBFileDownloader'

Manual:

Just copy the following files into your project:

MBFileDownloader.h
MBFileDownloader.mm


## Using

MBFileDownloader *fileDownloader = [[MBFileDownloader alloc] initWithURL:url toFilePath:filePath];
[fileDownloader downloadWithSuccess:^{
NSLog(@"success");
} update:^(float value) {
NSLog(@"%f", value);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];

## License

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