Skip to content
New issue

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

Progress block returning wrong value #36

Open
vivekfarshore opened this issue Feb 8, 2017 · 1 comment
Open

Progress block returning wrong value #36

vivekfarshore opened this issue Feb 8, 2017 · 1 comment

Comments

@vivekfarshore
Copy link

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];

@Rix1212
Copy link

Rix1212 commented Feb 8, 2017

Yes I also faced the same issue the CGFloat in progress block returns negative values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants