I have an ios spinner that becomes unhidden and starts when I call it to (when a user logs in), and should stop and go back to being hidden if it is successful or unsuccessful using the code:
[spinner stopAnimating];
However, for some reason, it just keeps spinning and therefore remains unhidden. I thought that something simple like this would only require the “spinner stop animating” method…
(by the way, I named the spinner “spinner”)
In my case, I do this:
Here, I have my activity indicator initialized in the following way:
And started in this way:
This also positions the spinner in the middle of the view.