Skip to content

Progress block returning wrong value #36

@vivekfarshore

Description

@vivekfarshore

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions