Skip to content

Instantly share code, notes, and snippets.

@oliverbarreto
Created June 24, 2015 11:06
Show Gist options
  • Save oliverbarreto/3022a22e8254564bcf73 to your computer and use it in GitHub Desktop.
Save oliverbarreto/3022a22e8254564bcf73 to your computer and use it in GitHub Desktop.
How to programmatically prevent auto-lock iOS?
UIApplication *thisApp = [UIApplication sharedApplication];
thisApp.idleTimerDisabled = YES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment