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 glow stops once the app is backgrounded #6

Open
tomidelucca opened this issue Jul 10, 2014 · 1 comment
Open

The glow stops once the app is backgrounded #6

tomidelucca opened this issue Jul 10, 2014 · 1 comment

Comments

@tomidelucca
Copy link

The glowing of the views stop when the app is backgrounded and relaunched. I tried reenabling it by calling the same method after the app is resumed without success. Thank you.

@andrealufino
Copy link

Hi, I had the same issue. I solved in this way :
in the applicationDidBecomeActive method in AppDelegate post a notification ( [[NSNotificationCenter defaultCenter] postNotificationName:@"appDidBecomeActive" object:nil]; ), then in your view controller listen to the notification :
[[NSNotificationCenter defaultCenter] addObserverForName:@"appDidBecomeActive" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
[_segmentedControl stopGlowing];
[_segmentedControl startGlowing];
}];

Remember to first stop the glow effect, and then restart it, otherwise this trick doesn't work.

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

2 participants