2

How can UIActivityIndicatorView do not stop when the mainThread blocked?

Alex K
  • 22,315
  • 19
  • 108
  • 236
bossbei
  • 99
  • 1
  • 4

1 Answers1

0

I don't think you can as the view uses the main thread itself to perform the animation. If you are performing long-running processes on the main thread (e.g. network, or long computational processes) consider changing your design. E.g. use GCD, threads etc.

Ben Clayton
  • 80,996
  • 26
  • 120
  • 129