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
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
Try to set UIApplication
's idleTimerDisabled
property to YES
.
[UIApplication sharedApplication].idleTimerDisabled = YES;
you can also put this line of code and it should work also.
[application setIdleTimerDisabled:YES];