Last active
October 6, 2015 04:17
-
-
Save andreortiz82/2934606 to your computer and use it in GitHub Desktop.
AFNetworking ProgressBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[operation setUploadProgressBlock:^(NSInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) { | |
float prog = (totalBytesWritten / (totalBytesExpectedToWrite * 1.0f) * 100); | |
[self.progBar setProgress:prog]; | |
NSLog(@"%f%% Uploaded", (totalBytesWritten / (totalBytesExpectedToWrite * 1.0f) * 100)); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment