Why can't I set screen brightness in applicationDidEnterBackground or applicationWillResignActive?
This is my code:
- (void)applicationDidEnterBackground:(UIApplication *)application
{
[[UIScreen mainScreen] setBrightness:1.0];
}
Can't understand it...!? It works in applicationDidEnterForeground etc, just not when i close the app using the home button.
Thanks to anyone that can help...