Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: How to stop the device standby timer? [duplicate]

I'm creating an iOS app who will have to stop the standby timer.

I mean the timer who put the device in standby after 60 seconds that a user does not touch the screen.

How can I do it?

Thanks

like image 861
Cla Avatar asked Feb 21 '11 09:02

Cla


1 Answers

Try to set UIApplication's idleTimerDisabled property to YES.

[UIApplication sharedApplication].idleTimerDisabled = YES; 
like image 80
Vladimir Avatar answered Sep 20 '22 23:09

Vladimir