0

I have this 3 classes.

When I download a image, I try to update the UIProgressView in my UIViewController, but the update are delayed, and I see a strange problem (see the blank space in attach image).

When all downloads are complete and execute the method "syncComplete" of "MyViewController", the method "dismissAlertView" is not triggered :S

enter image description here

I hope somebody can help me.

Thanks.

jfrubiom
  • 141
  • 4
  • 11

1 Answers1

1

Assuming that syncComplete is the one calling dismissAlertView, make sure iI is calling to the UI thread (main thread). Something like this if you use GCD:

dispatch_async (dispatch_get_main_queue (),  ^{
// call the dismissAlertView method here
}); 
user523234
  • 14,323
  • 10
  • 62
  • 102