Stopping idle timeouts on the iPhone
Posted: Wed 26 Aug, 2009 11:39 pm
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
(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)
Code: Select all
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];