Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. - (void)URLSession:(NSURLSession *)session
  2. downloadTask:(NSURLSessionDownloadTask *)downloadTask
  3. didWriteData:(int64_t)bytesWritten
  4. totalBytesWritten:(int64_t)totalBytesWritten
  5. totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite
  6. {
  7. float prog = (float)totalBytesWritten / (float)totalBytesExpectedToWrite;
  8. self.progressBar.progress = prog;
  9. NSLog(@"%f", [self.progressBar progress]);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement