Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/maximbilan/mbfiledownloader
- Owner: maximbilan
- License: mit
- Created: 2015-04-19T15:39:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T12:43:37.000Z (over 6 years ago)
- Last Synced: 2024-10-19T01:14:14.380Z (4 months ago)
- Topics: download, downloader, file, ios, ios-app, objective-c
- Language: Objective-C
- Homepage:
- Size: 28.3 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.