Marxon13 / M13ProgressSuite

A suite containing many tools to display progress information on iOS.
3.93k stars 529 forks source link

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

Closed supwy closed 10 years ago

supwy commented 10 years ago

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

Quamber commented 10 years ago

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

Marxon13 commented 10 years ago

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 commented 10 years ago

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

claudiumatei commented 8 years ago

@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 commented 8 years ago

Nice workaround @claudiumatei! Thank you..