I am uplading a a file to Parse as the documentation suggests.
[imageFile saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
} progressBlock:^(int percentDone) {
// Update your progress spinner here. percentDone will be between 0 and 100.
HUD.progress = (float)percentDone/100;
}]
The progressblock is called like 100 times where i update the HUd which seems to be ok.The problem is that the completion block is called like 10 seconds later when the progress block is called for the last time with the value 100.
As a result the hud remains on the screen with 100 % and removed 10 seconds later when the completion block is called.
I doubt that the progress block is called independent of the upload process by estimation.
P.S The file i am uploading is like 2.35 MB.
Try
HUD.progress = (float)percentDone/100.0;