Stopping idle timeouts on the iPhone

This forum is intended to enable people developing products using the PISD Libraries to recieve easy technical support and also to ask general questions about the libraries to other people using them.
Post Reply
User avatar
PISD Support
Moderator
Posts: 26
Joined: Thu 21 May, 2009 4:19 pm

Stopping idle timeouts on the iPhone

Post 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)
Post Reply