Skip to content
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

the indeterminate animation stopped when app enter background and back to foreground #17

Closed
supwy opened this issue Feb 22, 2014 · 5 comments

Comments

@supwy
Copy link

supwy commented Feb 22, 2014

set progress ring view to indeterminate mode and let app enter background and back to foreground. the indeterminate animation stopped.

@Quamber
Copy link

Quamber commented Feb 24, 2014

In a Navigation controller if you push a controller and then move back the animation stops at that stage too.

@Marxon13
Copy link
Owner

Marxon13 commented Mar 6, 2014

That has to do with what apple stops running when your application, or part of the application becomes inactive. For the navigation controller problem, you'll need to restart the animation in viewWillAppear: by setting the animated property to yes. For the entering the foreground problem, you need to respond to the notification: UIApplicationWillEnterForegroundNotification and restart the animation there. There really isn't a way to auto restart the animation reliably from within the progress view.

@maiconpeixinho
Copy link

@Marxon13 can you help me? How can i restart the animation. I've tried to put setAnimateStripes:YES and some other commands. Thanks!

@claudiumatei
Copy link

@maiconpeixinho, check my answer from issue #53
It seems that setting again the property "indeterminate" of the progress view will reset the animation. Something like:
self.progressView.indeterminate = self.progressView.indeterminate;

@maiconpeixinho
Copy link

Nice workaround @claudiumatei! Thank you..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants