iPhone: Disable screen dimming
This can be very handy if you're developing an iPhone game, where the screen shouldn't automatically dim to save battery life. Use this code when you launch your gameplay view, and set it back when you leave gameplay:
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
No comments:
Post a Comment