-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work on viewDidLoad #13
Comments
+1 I'm guessing here but maybe because of this line? maybe in the viewDidLoad method the window is nil? |
Has anyone found a work around for this? Id like to be able to start animating from the viewDidLoad. |
the comment above is correct - at view did load the controller is not in the app view hierarchy and therefore has no window. you should show the spinner in your |
I put the show spinner in the viewWillAppear and then the stop spinner at the end of my viewDidLoad but for some reason the animation only works for maybe 2 seconds then stops animating. The spinner still shows and then closes once the viewDidLoad alamofire request completes but it just doesn't animate for the entire time. |
Perhaps you have some code blocking the UI thread. |
Hi !
I've tried to add your nice spinner on my project, and, to do a first test, I've just call "show" method on the "viewDidLoad" of my first controller... But nothing was shown.
Then, I've tried to put it on "viewDidAppear" and it was OK.
Is it normal ?
The text was updated successfully, but these errors were encountered: