We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am downloading the video in tableview cell using this method [[TWRDownloadManager sharedManager] downloadFileForURL:FILE_URL progressBlock:^(CGFloat progress) { self.progressView.progress = progress; } remainingTime:^(NSUInteger seconds) { NSLog(@"ETA: %lu sec.", (unsigned long)seconds); self.mainLabel.text = [NSString stringWithFormat:@"Progress: %.0f%% - ETA: %lu sec.", self.progress*100, (unsigned long)seconds]; } completionBlock:^(BOOL completed) { NSLog(@"Download completed!"); self.deleteButton.enabled = YES; self.cancelButton.enabled = NO; self.startButton.enabled = NO; } enableBackgroundMode:YES];
The text was updated successfully, but these errors were encountered:
Yes I also faced the same issue the CGFloat in progress block returns negative values
Sorry, something went wrong.
No branches or pull requests
I am downloading the video in tableview cell using this method
[[TWRDownloadManager sharedManager] downloadFileForURL:FILE_URL progressBlock:^(CGFloat progress) {
self.progressView.progress = progress;
} remainingTime:^(NSUInteger seconds) {
NSLog(@"ETA: %lu sec.", (unsigned long)seconds);
self.mainLabel.text = [NSString stringWithFormat:@"Progress: %.0f%% - ETA: %lu sec.", self.progress*100, (unsigned long)seconds];
} completionBlock:^(BOOL completed) {
NSLog(@"Download completed!");
self.deleteButton.enabled = YES;
self.cancelButton.enabled = NO;
self.startButton.enabled = NO;
} enableBackgroundMode:YES];
The text was updated successfully, but these errors were encountered: