Turn off idle mode when running iOS app

Does anyone know how to disable idle devices while the application is running? I wrote an iOS application with webservices, but when the screensaver starts, I have synchronization.

thank

+5
source share
1 answer

Assuming “splash screen” means to turn off the device idle timer, which turns off the screen, you can use this simple line:

[UIApplication sharedApplication].idleTimerDisabled = YES;
+6
source

All Articles