Created
June 7, 2012 09:02
-
-
Save sendoa/2887604 to your computer and use it in GitHub Desktop.
Evitar que la pantalla se bloquee (iOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disable the idle timer | |
[[UIApplication sharedApplication] setIdleTimerDisabled: YES]; | |
// Or for those who prefer dot syntax: | |
[UIApplication sharedApplication].idleTimerDisabled = YES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment