Page 1 of 1

Stopping idle timeouts on the iPhone

Posted: Wed 26 Aug, 2009 11:39 pm
by PISD Support
If you find that the iPhone tends to timeout your app because its in a tight processing loop then there is a very simples code snipped which will prevent this from happening

Code: Select all

 [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
(call it again with NO to re-enable the screensaver like battery saving solution which the iPhone uses when it doesn't detect user input)