Why can't I set the screen brightness in applicationDidEnterBackground or applicationWillResignActive?
This is my code:
-(void)applicationDidEnterBackground:(UIApplication *)application {
[[UIScreen mainScreen] setBrightness:1.0];
}
Can't figure it out ...!? It works in applicationDidEnterForegroundetc. Only when I close the application using the home button.
Is there any other solution to this problem?
source
share