Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)URLSession:(NSURLSession *)session
- downloadTask:(NSURLSessionDownloadTask *)downloadTask
- didWriteData:(int64_t)bytesWritten
- totalBytesWritten:(int64_t)totalBytesWritten
- totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite
- {
- float prog = (float)totalBytesWritten / (float)totalBytesExpectedToWrite;
- self.progressBar.progress = prog;
- NSLog(@"%f", [self.progressBar progress]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement