I am building an application for the ipod touch that needs to run for several time (like an alarm clock). I would like to prevent the ipod touch from going to sleep unless the use manually exit the application. Is this possible with the current SDK?
You can goto Settings> General> Auto-Lock> and change the time to Never. This will stop the iPod touch from automatically locking.
You can disable the sleep mode:
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With