2

I have a UIProgressView that I am trying to change the progress but is is never updated. My "slow" operation is done from a NSoperation/NSOperation queue so it should be multithreaded.

Did you already experienced this or do you have any idea to solve this?

Thanks :)

Johan Kool
  • 15,637
  • 8
  • 64
  • 81
AP.
  • 5,205
  • 7
  • 50
  • 94

1 Answers1

6

Updates to the user interface should usually be done on the main thread. Try using -performSelectorOnMainThread:withObject:waitUntilDone: to update your UIProgressView.

Johan Kool
  • 15,637
  • 8
  • 64
  • 81
  • You will also want to make sure that the waitUntilDone argument is NO when doing this to get this to update properly in certain cases. – Brad Larson Mar 08 '10 at 02:09