I have been trying to implement this for a long time, and I have no favorable results.
Let's say I have a method in which an HTTP request is made (in particular, a twitter update), and they say that I want to display UIActivityIndicatorViewwhile the HTTP request is being executed (I know when this is done, because these are the delegate methods that are called when the query is executed, either with positive results or with negative ones).
I saw a lot of answers that say that stream processing is needed to implement this class. At first I tried to call the method startAnimatingon another thread and method stopAnimatingdirectly (without starting a new thread). After that, I saw this guy doing it , and I thought it was safer when I started and stopped the indicator in two different ways (delegate methods for updating twitter).
However, none of these two ways to do this gave me the results I want (the activity indicator is not displayed at all). Is there something I am missing?
Thanks in advance, and I apologize if my question is too long.
Your help is greatly appreciated.
source
share