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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T12:43:37.000Z (almost 7 years ago)
- Last Synced: 2025-04-12T19:03:51.843Z (3 months ago)
- Topics: download, downloader, file, ios, ios-app, objective-c
- Language: Objective-C
- Homepage:
- Size: 28.3 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MBFileDownloader
[](http://cocoadocs.org/docsets/MBFileDownloader)
[](http://cocoadocs.org/docsets/MBFileDownloader)
[](http://cocoadocs.org/docsets/MBFileDownloader)
[](https://cocoapods.org/pods/MBFileDownloader)
[](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.