To run the example project, clone the repo, and run pod install
from the Example directory first.
PGContinueDownload is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PGContinueDownload'
[[PGDownLoaderManager shareInstance] downLoadWithURL:kURL msgBlock:^(long long totalSize, NSString * _Nonnull downLoadedPath) {
NSLog(@"开始下载");
} progress:^(float progress) {
NSLog(@"下载中--%f", progress);
} success:^(NSString * _Nonnull downLoadedPath) {
NSLog(@"完成");
} failed:^(NSString * _Nonnull errorMsg) {
NSLog(@"失败");
}];
PggMan, [email protected]
PGContinueDownload is available under the MIT license. See the LICENSE file for more info.