TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2017 |
Maintained by Kanstantsin Bucha, Kanstantsin Bucha.
[![CI Status](http://img.shields.io/travis/Kanstantsin Bucha/CDBDownloader.svg?style=flat)](https://travis-ci.org/Kanstantsin Bucha/CDBDownloader)
To run the example project, clone the repo, and run pod install
from the Example directory first.
[CDBDownloader downloadFileAtURL:URL
progress:nil
completion:^(NSURL * downloadedFileURL, NSError *error) {
if (error != nil) {
[[NSFileManager new] removeItemAtURL:downloadedFileURL
error:nil];
return;
}
NSLog(@" Download document to URL:\
\r\n %@", downloadedFileURL);
}];
remember to add section to your app in info.plist file, replace www.pdf995.com to your download domain
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>www.pdf995.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
CDBDownloader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CDBDownloader"
Kanstantsin Bucha, [email protected]
CDBDownloader is available under the MIT license. See the LICENSE file for more info.