Wednesday, September 02, 2009
iPhone Dev: Keep the iPhone from going to sleep
Use this code to prevent the iPhone from dimming its screen. Note that keeping the device un-dimmed increases battery consumption...
[UIApplication sharedApplication].idleTimerDisabled = YES;
|